Windows Authentication connectionstring 'Login failed for user Gue
From: Ted W9999 (TedW9999_at_discussions.microsoft.com)
Date: 01/07/05
- Next message: William \(Bill\) Vaughn: "Re: Named parameters w/o stored procedure - possible or not?"
- Previous message: Vadim Rapp: "Named parameters w/o stored procedure - possible or not?"
- Next in thread: Frank Hickman [MVP]: "Re: Windows Authentication connectionstring 'Login failed for user Gue"
- Reply: Frank Hickman [MVP]: "Re: Windows Authentication connectionstring 'Login failed for user Gue"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 7 Jan 2005 14:15:05 -0800
I have an VB6 client-server application that is currently using mixed mode
authentication to access SQL Server using the sa login. In order to avoid the
sa login, I want to convert the app to use Windows Authentication. So I
changed the connection string to this:
Provider=SQLOLEDB.1;Initial Catalog=mydatabase;Data
Source=mycomputer;Integrated Security=SSPI
This works fine on the local computer, but when I try to connect to another
computer on my network (which worked before) I get an error:
Login failed for user 'ABS3200\Guest'
ABS3200 is the other computer I am trying to connect to.
Okay, so I added a new user (EZA) and password (jackson) to the ABS3200
computer User Accounts. Then I went into SQL Server Enterprise Manager on
ABS3200 and added the EZA user to my database with ddladmin, datareader and
datawriter priviledges.
Then I changed the connection string to:
Provider=SQLOLEDB.1;User ID=EZA;Password=jackson;Integrated
Security=SSPI;Initial Catalog=mydatabase;Data Source=ABS3200
I still got the same error, so I went on the Internet and researched and
tried a score of variations for the connection string. Same problem.
Then I got smart (I thought). I created a "TEST.UDL" file on my desktop and
tried to have Windows configure the connection string for me. No dice. Same
problem.
I am sure I am missing something obvious here. My goal is this:
Allow up to 100 intranet connections to the server database without
requiring the configuration of individual login ids on the server for each
one.
Please help! And thanks in advance!
- Next message: William \(Bill\) Vaughn: "Re: Named parameters w/o stored procedure - possible or not?"
- Previous message: Vadim Rapp: "Named parameters w/o stored procedure - possible or not?"
- Next in thread: Frank Hickman [MVP]: "Re: Windows Authentication connectionstring 'Login failed for user Gue"
- Reply: Frank Hickman [MVP]: "Re: Windows Authentication connectionstring 'Login failed for user Gue"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|