Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Failure to access SQL 2000 db via ODBC

Posted on 2003-03-10
Medium Priority
Last Modified: 2011-10-03
I have a network where three Citrix metaframe servers host executables which access a SQL server 2000 database via ODBC DSN, the SQL 2000 client drivers are on the Citrix servers.  Two of the Citrix boxes have no problem but the other will only let the network administrator access the db.  Other attempts to utilze the ODBC DSN by ACCESS also meet with failure.   When ordinary user tries the link they get the following error displayed:

Connection Failed
SQL State: '01000'
SQL Server Error 2
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen
Connection Failed
SQL State: '08001'
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or
access denied.

Testing the DSN succeeds, but using it fails.  The registry is allowing Everyone to fully control the ODBC DSN in question and a regmon trace of the ODBC DSN access show it as successful...  Any ideas.
Question by:brianf51
  • 2

Accepted Solution

mmartel earned 1000 total points
ID: 8116712

Are you using SQL Server (named) or Windows NT authentication at the server?  If you are using NT authentication, try accessing the database using one of the Windows NT logons that can't access it from the third Citrix server.  

If you can't connect from a different server also, you need to go back and check that your logons and permissions were set up correctly on the SQL server.  Users may have permission to open a connection (by virtue of having a logon) but may lack permissions to access any of the databases (catalogs) hosted by that server.  This would enable you to connect when you test, but not actually access any data.

If you can access the database when logged in as the non-admin account from the other two servers, your database permissions are fine.  In this case, is it possible that the third server is on a separate Windows domain?  If so, you need to add in users and/or groups login on the separate domain in the SQL server enterprise manager.

You can also test if this is a permissions-related issue with logins or the specific permissions on a database by creating a dummy database on the SQL server with just a single table.  Give all of your affected users full access permissions on that SQL server catalog.  Then set up a new DSN and try connecting to that dummy db through Access.  If you're able to connect, it points to issues with how you've configured permissions on the desired database/catalog on the SQL Server.

Good luck.

Expert Comment

ID: 8116715
(clarification from above)...

paragraph 1: Using a logon that doesn't work on the third Citrix server, try logging into one of the first two.  Then try connecting and running the app...
LVL 17

Expert Comment

ID: 10337124
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: mmartel {http:#8116712}

Please leave any comments here within the next four days.

EE Cleanup Volunteer

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question