I have installed SQL server 2005 express on my main server.
It has been installed with windows authentication.
I can use sqlcmd -S machinename\instancename to connect to the server, but when I try to connect from another machine on my lan, I get the error about user not part of trusted sql connection msg 18452 level 14 state 1
I have tried using a windows username and password from my server to access it but that fails also.
Any help would be appreciated
Hi,
I don′t know if you specified the Windows username and password , because you can′t specify this within SQLCMD; if you use Username and password with SQLCMD you always switch to SQL Server authentication which can be not allowed on the server. If you want to use Windows authewntication, you have to log on as the appropiate user and then use SQLCMD or otherwise you can use the runas command of WIndows to impersonate yourself as the user while executing SQLCMD. Otherwise you can′t use Windows authentication.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
No comments:
Post a Comment