Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : ASP : ADO/ODBC : The complete asp page/s? Signup · Login
Author Thread
The complete asp page/s?
Posted in tutorial: Adding records to the database with ASP
·  Roger
User
Joined: 30 Nov 2002
Total Posts: 1
The complete asp page/s?
Posted: 30 Nov 2002
Mr Khan:

From your lesson on adding records to the database, are the codes for the "Via Connection Object" and "Via Recordset Object", the complete ones? Meaning, do I just have to copy and paste any one of these on notepad, rename rename it (with an .asp extension), and drop it into my inetpub/wwwroot? Moreover, I also have had created my dbase and have it connected on my system DSN. I named my DSN, "dbinsert". One thing that I am not sure is where do I put my DSN within the codes on either connection object or recordset?

I liked your lesson on accessing dbases from asp, it was that step by step process that helped me a lot.

I can't get this to work. Help?!

-Roger

Roger Espiritu
·  Faisal Khan
AdminAdminAdminAdmin
Joined: 24 Sep 2002
Total Posts: 547
Re: The complete asp page/s?
Posted: 4 Dec 2002
You'll have to change the following in the code:


data_source = myDSN

to:


data_source = "DSN=dbinsert"


And there you go, if you have setup everything correctly the code should work.

That DSN thing is not necessarily required, you can use a connection string instead. For more details read this article: http://www.stardeveloper.com/articles/display.html?article=2000120101&page=1

Faisal Khan.
Stardeveloper.com

Users Who Have Visited This Thread In Last 24 Hours
3 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.