Connection String Using a Domain User?

后端 未结 5 1510
鱼传尺愫
鱼传尺愫 2020-12-15 16:08

Previously for all our asp.net applications we have been using a sysadmin user within SQL Server to connect and add/update/delete/get data. Our SQL Admin wants to delete tha

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 16:58

    Use integrated security:

    Integrated Security=SSPI
    

    Which has a variant:

    Trusted_Connection=True
    

    The different connection strings (for a variety of databases) can be found on connectionstrings.com.

    With both of these you need to ensure that the application is running under the account you need to login with.

提交回复
热议问题