What is the difference between Integrated Security = True and Integrated Security = SSPI?

后端 未结 9 2235
独厮守ぢ
独厮守ぢ 2020-11-22 10:36

I have two apps that use Integrated Security. One assigns Integrated Security = true in the connection string, and the other sets Integrated Security = S

9条回答
  •  我在风中等你
    2020-11-22 10:49

    Note that connection strings are specific to what and how you are connecting to data. These are connecting to the same database but the first is using .NET Framework Data Provider for SQL Server. Integrated Security=True will not work for OleDb.

    • Data Source=.;Initial Catalog=aspnetdb;Integrated Security=True
    • Provider=SQLOLEDB;Data Source=.;Integrated Security=SSPI;Initial Catalog=aspnetdb

    When in doubt use the Visual Studio Server Explorer Data Connections.

    • What is sspi?
    • Connection Strings Syntax

提交回复
热议问题