Can I connect with Windows Authentication Mode

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for universal data access
Post Reply
magixxfactory
Posts: 12
Joined: Fri 27 Aug 2010 18:24

Can I connect with Windows Authentication Mode

Post by magixxfactory » Fri 11 Mar 2016 12:20

Hello,
ist it possible to connect with Windows Authentication Mode to a SQLServer database witrh dotConnect Universal and if so - how ?
Thanks and regards
Uwe

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: Can I connect with Windows Authentication Mode

Post by Pinturiccio » Fri 11 Mar 2016 15:27

dotConnect Universal support for Windows Authentication depends on the underlying provider used by dotConnect Universal. For SQL Server it uses the System.Data.SqlClient provider, which allows connecting with Windows Authentication. For this, you need to set the Integrated Security or Trusted_Connection connection string parameter to true. For example, the connection string will look like the following:

Code: Select all

"provider=SQL Server;Server=<SERVER>;Integrated security=true"
For more information, please refer to https://msdn.microsoft.com/en-us/librar ... 10%29.aspx

magixxfactory
Posts: 12
Joined: Fri 27 Aug 2010 18:24

Re: Can I connect with Windows Authentication Mode

Post by magixxfactory » Tue 15 Mar 2016 15:13

Thanks alot.
One more question.

What DLL's do I need to deploy for using SQLServer ?
Thanks and regards
Uwe

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: Can I connect with Windows Authentication Mode

Post by Pinturiccio » Wed 16 Mar 2016 15:33

You need to deploy Devart.Data.dll and Devart.Data.Universal.dll assemblies. If your application uses the Devart.Data.Universal.Web.dll assembly, you need to deploy it with your application too. Additionally you need to add the technical licensing resource. For more information, please refer to
https://www.devart.com/dotconnect/unive ... yment.html
https://www.devart.com/dotconnect/unive ... nsing.html

Post Reply