P
prem
Hello Everybody,
I have a client program for which I need to support Windows authentication.
I used the following SQL connection and it works for the current user
"server=localhost; database=myDB;Integrated Security=SSPI;"
But, I wanted to login using other windows login name ( i.e., not the
current logged on user ) and I used the following conection string
"server=localhost; database=myDB;Integrated Security=false;User
Id={0};Password={1};"
for which I got an error "Login failed for user <username>".
I need a way to authenticate SQL Server with a windows login name.
FYI: I have my SQL server configured for both Windows and SQL authentication.
Thanks in advance.
-Prem
I have a client program for which I need to support Windows authentication.
I used the following SQL connection and it works for the current user
"server=localhost; database=myDB;Integrated Security=SSPI;"
But, I wanted to login using other windows login name ( i.e., not the
current logged on user ) and I used the following conection string
"server=localhost; database=myDB;Integrated Security=false;User
Id={0};Password={1};"
for which I got an error "Login failed for user <username>".
I need a way to authenticate SQL Server with a windows login name.
FYI: I have my SQL server configured for both Windows and SQL authentication.
Thanks in advance.
-Prem