Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access ASP
|
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP 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 June 10th, 2003, 06:01 PM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default OLE DB Provider for ODBC Drivers error '80004005'

I get the following error when trying to post to my database:
-----------------------------------------
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/Connect.inc, line 8
-----------------------------------------
Connect.inc, lines 6-8 are:
'Create and open the database object
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open Application("ConnectString")

Where do I specify what Application("ConnectString") is? I'm afraid that was in global.asa and I have hosed that up! :( With no backup, of course.
The DNS = SOF, no password required

Can you recommend some code (and whether it goes in global.asa or not) to fix this?

Thanks!
Gary
 
Old June 11th, 2003, 03:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

If you have a DSN named SOF already set-up then the connection string is simply "DSN=SOF". There's nothing wrong with putting it in global.asa, like this
Code:
Sub Application_OnStart
    Application("ConnectString") = "DSN=SOF"
End Sub
 
Old June 11th, 2003, 07:02 AM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

pgtips,
That was exactly what I was missing! Thanks a million:)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft OLE DB Provider for ODBC Drivers (0x8004 phantom3008 ASP.NET 1.0 and 1.1 Basics 6 April 25th, 2007 10:30 AM
Microsoft OLE DB Provider for ODBC Drivers phantom3008 Classic ASP Basics 6 March 15th, 2007 09:39 AM
Microsoft OLE DB Provider for ODBC Drivers error ' rajiv_software Classic ASP Basics 6 April 28th, 2005 12:52 AM
Microsoft OLE DB Provider for ODBC Drivers surendran Classic ASP Databases 4 October 27th, 2003 10:23 AM





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