How do I connect to SQL Server using OLEDB using Windows Authentication connection string
问题 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 when connecting using .NET OLEDB connections it fails and I can't figure out why. Here is the string: data source=172.20.0.113;initial catalog=ForgeEnterprise;Integrated Security=SSPI;multipleactiveresultsets=True;App=EntityFramework And here is the error: Login failed for user 'MOMENTUMI\jmcclure' Is there something I