SQL Server Express LocalDB

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
arusoft
Posts: 45
Joined: Thu 06 Sep 2012 20:19

SQL Server Express LocalDB

Post by arusoft » Fri 23 May 2014 04:09

Hi,

How can I easily covert our sql server application to sql server localDB application without much changes. We basically use uniCOnnection all over the place to connect to SQL Server. Now we want to use same application on laptop using LocalDB . Also is there any easy way to convert SQL Server Db to LocalDB?

Please advice.
Thank You.

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: SQL Server Express LocalDB

Post by azyk » Fri 23 May 2014 11:16

Hi,

To connect to SQL Server LocalDB using UniDAC, you should use SQL Native Client provider. For this, in the connection options, set TUniConnection.SpecificOptions.Values['OLEDBProvider'] := 'prNativeClient'.

In addition, you should use Windows Authentication in a SQL Server LocalDB connection. For this, set the TUniConnection.SpecificOptions.Values['Authentication'] option to 'auWindows'.

Post Reply