INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Connection Failed: SQLstate : '28000'

Connection Failed: SQLstate : '28000'

(OP)
I have an Access 2000 database which connects to SQL Server 2000.

I want to give normal users access to this database, but when I run the query, it asks for a username & password. When I select 'trusted connection' or enter in their ERP login, it returns the following error:

Connection failed: SQLState: '28000'. SQL Server error : 18456 - login failed for user Domainname\username

When I go to SQL Enterprise Mgr/Properties/Security/Authentication = SQL Server & Windows

How can I create a user in SQL that can connect and that does not give away my SQL admin password?

Clients connecting are on a Windows 2000 Terminal Server SP4

Thanks

RE: Connection Failed: SQLstate : '28000'

First, every user has to have a SQL Server login. It doesn't matter if the login uses Windows Authetication or SQL Server Authentication, they still need a login.

Easiest way, open Enterprise Manager, expand until you see Security. Expand that and click on Logins. They need to have a login here. If there isn't one, right click on Logins and select New Login. Create the login and give them access to the proper database. Also, give them the proper authentication.

-SQLBill

Posting advice: FAQ481-4875

RE: Connection Failed: SQLstate : '28000'

(OP)
That worked first time - thanks

RE: Connection Failed: SQLstate : '28000'

(OP)
When I run the query, the connection screen to the SQL database defaults to the username of an Administrator user.

Can I change this somehow to always default to the user that I have created in SQL Server logins?

Thanks

RE: Connection Failed: SQLstate : '28000'

How do you run the query? Is it from Access itself or from a shortcut?

I think that any query run from Access itself will have the admin, since that's who created the ODBC link initially. If you save the query as a shortcut or with some other name (after you have run it and used your login information), then it will have your information next time.

-SQLBill

Posting advice: FAQ481-4875

RE: Connection Failed: SQLstate : '28000'

(OP)
The Access DB has a shortcut on the Desktop, when you click on the shortcut a Macro forces a form to popup asking you to enter an Item no. The Items in the DB are invisible to those who use it, as I dont wish them to have anymore access and the tables in the query are linked to an ERP system.

The DB resides on a Network share. I copied it locally and it still defaults to the same 'Admin' authentication details even when I successfully authenticate using the user I created.

When I copied it locally, I get the following error:

Connection Failed:
SQLState: '01000'
SQL Server Error: 86
[Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionOpen (CreateFile()).
Connection Failed:
SQLState: '08001'
SQL Server Error: 86
[Microsoft][ODBC SQL Server Driver]Client unable to establish a connection

Thanks

RE: Connection Failed: SQLstate : '28000'

You copied WHAT locally? The database or the form?

I think you want to open the form that is on your desktop. Run it with your login information. When it returns it's results, save it with a new name like "myForm", or "SQLBillsForm". Save it to a local file and then make a shortcut for your desktop.  That's how we do it here.

-SQLBill

Posting advice: FAQ481-4875

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close