Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2004, 06:47 AM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 1,143
nickc RepRank 0
Default Using ASP without ODBC

Can anyone point me in the direction of some ASP code that doesn't involve using an ODBC source to open an access database? Thanks.

Nick
Reply With Quote
  #2 (permalink)  
Old 02-17-2004, 09:15 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Hi Nick,

This taken from Aspin.com:

Dim cnDB
Dim Rs
Dim strConn

set cnDB = server.CreateObject ("ADODB.Connection")
strConn = "Data Source=" & Server.MapPath("Wherever\YourDatabase")
cnDB.Open "Provider=Microsoft.Jet.OLEDB.4.0; " & strConn
set Rs = server.CreateObject ("ADODB.Recordset")
Rs.Open "SELECT * FROM YourTable WHERE YourCondition, cnDB, 1


You need to be looking for references to DSN-less connections or connection strings that use OLEDB or ADO. Here are a couple of links to be going on with.

http://www.prezzatech.com/support/kbarticle.asp?ID=2
http://stardeveloper.com:8080/articl...0120101&page=1

Hope that helps,

Paul
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0