Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Database problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Database problem

 Post Reply Post Reply
Author
Leeb65 View Drop Down
Groupie
Groupie


Joined: 05 December 2003
Location: Germany
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Leeb65 Quote  Post ReplyReply Direct Link To This Post Topic: Database problem
    Posted: 29 April 2004 at 8:28am

I have setup a new server WS2003, I have a "System DSN" that points to an Access database.

When I try to access the DB I get the following Error:

Quote

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed

/erfinderclubs/asp/db_erfcl.asp, line 15

The code that is causing the problem is:

Set conn = Server.CreateObject("ADODB.Connection")

conn.open "erfinder","",""    'Error here!!

sql = "SELECT Erfindungen.Titel, Erfindungen.ErfindungsNr FROM [Erfindungen] order by Titel"

Set rs = Server.CreateObject("ADODB.Recordset")

rs.Open sql, conn, 3, 3

Can anyone help me please? it all worked on the other server but I didn't set that one up and I have never had problems like this before.

 Have I forgotten to include something?

 

Lee


Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2004 at 11:42am
What's in errfinder?

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2004 at 12:29pm
try with a DSN Less connection, faster and more stable

but shouldn't the DSN connection string be "DSN=DSN Name"?
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2004 at 1:14pm

Originally posted by dpyers dpyers wrote:

What's in errfinder?

Erfinder is german for Inventor

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.