How do I connect to SQL Server using OLEDB using Windows Authentication connection string

前端 未结 1 1360
陌清茗
陌清茗 2021-01-23 03:04

I have SQL Server 2010 running in windows auth mode and the proper groups have been assigned. I can connect via the SQL Server Client Studio using windows auth. That works. But

相关标签:
1条回答
  • 2021-01-23 03:48

    According to http://connectionstrings.com/sql-server-2008 this should do the trick

    Provider=SQLNCLI10;Server=172.20.0.113;Database=ForgeEnterprise;Trusted_Connection=yes;
    

    Where Trusted_Connection is the same as Integrated Security apparently.

    If that doesn't work, you should verify that the user is added in the permissions tab (picture) for the database, but I guess you already did that.

    As seen in this picture

    0 讨论(0)
提交回复
热议问题