Wrox Programmer Forums
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 16th, 2008, 01:26 PM
Authorized User
Join Date: Jun 2003
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default AddNew with SQL Server...

Hey All,

I am migrating my site from MS Access to SQL Server 2000 and I need a little assistance to make my application work. This is probably the most basic ASP, but I just can't get it to work for me. The code runs and the page does not throw an error but when I check to see if the record has been added, nothing has happened. I have a search engine that displays announcements and when you find a favorite you can click on it and add it to your favorites section. When you select which folder you wish to store it, it then does the work necessary to create a new record in the SQL Server Database. Here is the code:


SET DbConn = Server.CreateObject("ADODB.connection")
DbConn.Open = "DSN=quijasqldb"
SET oRS = Server.CreateObject("ADODB.recordset")
oRS.Open "Favorites", DbConn, 2, 2
oRS("AdvertID") = Request.Form("hidAnunID")
oRS("FolderID") = Request.Form("ddCarpeta")
oRS("UserName") = Session("QuijaID")
SET oRS = Nothing
SET DbConn = Nothing

As I mentioned before the page throws no error and runs but nothing is created in the database. I am sure it is something so trivial and basic, but I really could use some help.

Many thanks for your assistance and time,

Paul Jacobs

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help regarding Addnew Kaustav Classic ASP Databases 8 January 10th, 2010 06:33 PM
Conflict in SQL Server 2000 and SQL Server 2005 ayan.mukherjee SQL Language 0 June 30th, 2008 03:34 AM
SQL Server Reg. SQL Server does not exist error Arsi SQL Server 2000 1 June 11th, 2008 11:20 AM
migrating from sql server 2000 to sql server 2005 abinashpatra SQL Server 2005 2 December 1st, 2006 03:45 PM
SQL Server sync with net server and browser server ne SQL Server DTS 0 June 13th, 2005 06:29 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.