Home | Advertising Info28 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Re: Adding records
From: Harlan
Date: 3/22/1999 9:00:31 AM
IP: 206.222.20.2



 

I'm not sure what your doing, but you probably shouldn't be using a file dsn, you should more then likely be using a system dsn. So, after you get that changed.. your code will look something like this (Assuming your db is access, cus this isn't gonna work with any other db the way you have your dsn string setup).

Set connDB = Server.CreateObject ("ADODB.Connection")
cstDSN = "DSN=System_DSN_Name_Here"
connDB.Open cstDSN
set rsOne = Server.CreateObject ("ADODB.Recordset")
rsOne.Open "table1",connDB,adOpenKeyset ,adLockPessimistic

note: the naming changes I made are only changes to standard nameing convention, and not really required. The only real code changes I made is to the constant dsn string you had. I would also suggest you add comments ;)

Previous Message

Follow Up - Re: Adding records - Chris Williams 3/22/1999 10:06:11 AM


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com