MS SQL Server '08 ignoring username and password when requesting a connection with connection string using Integrated security=SSPI -
i'm using connection string connect ms sql server '08 db,
"data source=qwe;initial catalog=dsa;integrated security=sspi;user id=mydom\unamee;password=pwd;"
but server ignoring username specify , uses machine name instead; , says unable authenticate user mydom\mymachinename
i've check other similar question, not same problem, please help, head breaking
when use integrated security=sspi
(or true
), userid
, password
have specified ignored. login made using windows credentials logged in windows\domain. in case you'll need have appropriate windows login created in sql server.
if want use sql server login, specifying username , password created in sql server -you should set 'integrated security=false
or remove property altogether because false
default value.
edit:
to make long story short: can either use integrated security or username/password , not both. can not log in using else's domain account, of user logged in windows @ moment.
Comments
Post a Comment