Groups | Blog | Home
all groups > sql server odbc > march 2004 >

sql server odbc : ODBC connection fails


cjobes
3/11/2004 12:47:41 AM
I'm running SQL 2000/SP3 on a W2k server. I have a database with a standard
user (dbo rights). From any of my workstations I can create an ODBC
connection using SQL authentication.
When I try to create an ODBC connection on the server itself with the same
credentials, I get an error msg "login failed, username is not associated
with a trusted server connection". Using Windows authentication with another
user that has access to the SQL server works fine.

This doesn't make sense to me. What am I overlooking here? Any help/hint
would be appreciated.

Thanks
Claus

Steve Thompson
3/12/2004 3:24:21 PM
[quoted text, click to view]

The user account itself needs to have access to the server running SQL
Server. One way to verify, temporarily enable (don't leave it that way ;)
the server GUEST account.

Steve

Ayaz Ahmed
3/19/2004 9:58:47 PM
Hello,

Define user id "sa" and set pwd for sa account on sql server and try to
login that account on odbc connection.

i hope it will working fine.


Thanks,

Warm Regards,

Ayaz Ahmed
Software Engineer & Web Developer
Creative Chaos (Pvt.) Ltd.
"Managing Your Digital Risk"
http://www.csquareonline.com
Karachi, Pakistan
Mobile +92 300 2280950
Office +92 21 455 2414

*** Sent via Developersdex http://www.developersdex.com ***
Steve Thompson
3/23/2004 1:20:01 PM
Actually that is a not a good idea (at least as a permanent solution) as sql
security is sent over the network in clear text.

Steve
[quoted text, click to view]

AddThis Social Bookmark Button