all groups > sql server msde > february 2005 >
You're in the

sql server msde

group:

How do I create a trusted SQL Server Connection on WinXP servPack 2?


How do I create a trusted SQL Server Connection on WinXP servPack 2? s_benning NO[at]SPAM yahoo.com
2/23/2005 4:40:04 PM
sql server msde:
Hi!

I have MSDE installed and everything works fine on a local desktop.
But when I want to log in from i.e. a development environment from
another machine on my intranet, I can only do that if I have the guest
account on the machine where the MSDE runs set as a member of
administrators. I'd prefer not to do that, but if I try to connect in
any other way, I get this error message: "Login failed for user ....
Reason: Not accociated with a trusted SQL Server Connection". Is there
any way I can set up such a trusted connection so that I can create a
connection string with uid and pwd instead of using SSPI?

I installed the server instance with the following parameters:

instancename=instancename security=SQL disablenetworkprotocols=0
sapwd=strongpwd

If it is possible to create such a trusted connection, how should the
connection string look?

All hints are welcome..! Thanks.

Re: How do I create a trusted SQL Server Connection on WinXP servPack 2? Jim Young
2/23/2005 6:55:41 PM
A trusted connection is one that uses the security credentials of the
network connection to connect to the database. This is different from an SQL
user connection where the connection is challenged with a user name and
password request before the connection is allowed. The kind of connection
string you want to use would look something like:

Database=MyDatabase;Server=MyServer;User ID=MyUser;Password=MyPassword
etc.

The Books Online have a fairly good explaination of ADO connection strings.



Jim

[quoted text, click to view]

Re: How do I create a trusted SQL Server Connection on WinXP servPack 2? s_benning NO[at]SPAM yahoo.com
2/24/2005 12:33:41 AM
Hi Jim,

Thank you very much for your reply. You have sent me in the right
direction, since I now can connect to the database server from my
development environment using a sql user account, then the connection
string is a lesser problem. And: I would still like to know how to
create a trusted SQL connection, if you could point me in the right
direction, remembering that dealing with user accounts in windows is
fairly new territory for me.

Once again thanks, you have removed quite a headache from me.

Stig

[quoted text, click to view]
AddThis Social Bookmark Button