Connection String Using a Domain User?

后端 未结 5 1520
鱼传尺愫
鱼传尺愫 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:47

    Yes, try this:

    Data Source=server;Initial Catalog=database;Integrated Security=SSPI;
    

    This specifies that you wish to use integrated Windows authentication where you were still trying to use SQL Server authentication (even though the username you entered looked like a Windows domain / user account SQL server still treats it as standard SQL Server authentication)

    Also take a look at connectionstrings.com

提交回复
热议问题