SQL Server Compact Samples
SQL Server Compact Samples
Are there any Delphi code samples working with SQL Server Compact using SDAC 4.0 avalible?
-
RobertBinsack
- Posts: 2
- Joined: Fri 24 Feb 2006 09:35
SQL-Server Compact-Edition Delphi Example missing
Hi!
I wanted to use UniDAC with SQL-Server Compact Edition with Delphi 7. I've just downloaded the UniDAC for Delphi 7 Version 3.00.0.8 (12-Apr-2010) from the registered Users Area.
After doing a complete installation with everything checked (also examples) I took a look at the %SDAC%\Demos\TechnologySpecific\MSSQLCompact-Folder and there is only a "SecureBridge"-Folder but not samples for SQL-Server compact.
Can you help me or post the example-files here?
Kind regards,
Robert
I wanted to use UniDAC with SQL-Server Compact Edition with Delphi 7. I've just downloaded the UniDAC for Delphi 7 Version 3.00.0.8 (12-Apr-2010) from the registered Users Area.
After doing a complete installation with everything checked (also examples) I took a look at the %SDAC%\Demos\TechnologySpecific\MSSQLCompact-Folder and there is only a "SecureBridge"-Folder but not samples for SQL-Server compact.
Can you help me or post the example-files here?
Kind regards,
Robert
You can work with TUniConnection and SQL Server Compact Edition the same way as with an ordinary SQL Server database.
Set the OLEDBProvider specific option to prCompact and specify the path to the database file in the Database property, like this:
Set the OLEDBProvider specific option to prCompact and specify the path to the database file in the Database property, like this:
Code: Select all
UniConnection.SpecificOptions.Values['OLEDBProvider'] := 'prCompact';
UniConnection.Database := 'database.sdf';