How to connect to sql server with impersonation?

Our sql server connection policy just changed. I have been informed that the user name and password provided have now the following format:

user name: {domain-name}{user-name}

password: {password}

I have also been told that only impersonated user can log into the server with the connection string having above user name and password.

I tried with the regular SqlConnection but got "Login failed for '{domain-name}{user-name}'. I am working with sql server 2012.

What should I do to implement that 'impersonation' stuff?

链接地址: http://www.djcxy.com/p/74082.html

上一篇: 所有属性的JavaScript getter

下一篇: 如何通过模拟连接到sql server?