how to connect sql server ce?

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
bugmenot1
Posts: 6
Joined: Wed 04 Nov 2009 03:23

how to connect sql server ce?

Post by bugmenot1 » Wed 04 Nov 2009 03:26

how to connect sql server ce with delphi 7??
pls give me a demo.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 04 Nov 2009 14:09

To connect to SQL Server CE you should set the following properties of TUniConnection:

Code: Select all

UniConnection.ProviderName := 'SQL Server';
UniConnection.SpecificOptions.Add('OLEDBProvider=prCompact');
UniConnection.Database := Path_To_Database_File;

Post Reply