Kihtrak J
Kihtrak J

Reputation: 132

Connection String to connect a SQL Server using another windows account

How to create a SQL connection string to connect a SQL Server instance using another Windows account? I need to provide the Windows user name (not SQL Server login) and password and force the server to use this credentials while creating a connection.

Integrated Security=SSPI picks my PC user account and password

Is there a way to accomplish this?

Please advise.

Thanks, KihtraK

Upvotes: 2

Views: 791

Answers (1)

TomTom
TomTom

Reputation: 62093

Yes, and quite trivial.

Finished. Internal security will now work with the impersonated user. Impersonation is explicitly done to NOT have to deal with username and password.

Upvotes: 4

Related Questions