If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > OLEDB error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-15-04, 13:31
Mark23669 Mark23669 is offline
Registered User
 
Join Date: Apr 2004
Location: Hampton VA
Posts: 2
Question OLEDB error

I don't know if this made it to the forum earlier. I am developing an ASP application tied to an Access database on my local machine. When I try to run the page(I am using Dreamweaver as the developing platform) I get the following error:

Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/MSR/MSRForm.asp, Line 11


Line 11 reads as follows:

cnn.open application("MSR")

MSR is the name of the application and the Access database. Can you tell me what I've done wrong? I've attached a text copy of the global.asa file I am using.
Attached Files
File Type: txt global.txt (902 Bytes, 23 views)
Reply With Quote
  #2 (permalink)  
Old 04-15-04, 18:52
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
I'm not sure if your connection string is correct or not, but before you do you connection do a response.write application("MSR") to ensure your application variable has been set properly (just to debug).
Reply With Quote
  #3 (permalink)  
Old 04-16-04, 09:22
Mark23669 Mark23669 is offline
Registered User
 
Join Date: Apr 2004
Location: Hampton VA
Posts: 2
Quote:
Originally posted by rokslide
I'm not sure if your connection string is correct or not, but before you do you connection do a response.write application("MSR") to ensure your application variable has been set properly (just to debug).
The connection string was correct. I had the global.asa file in the wrong directory. It had to be in the directory where the default page is located.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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