IWS projects running in CEView can interface with Microsoft SQL Server CE (SQL CE) databases on the same device by using the OLEDB Provider for SQL Server CE. This provider must be installed on your Windows Embedded device.
Version | Connection String |
---|---|
SQL CE 2.0 | Provider=SQLCE; Data Source=database_path |
SQL CE 3.0 | Provider=SQL_CE3.0; Data Source=database_path |
SQL CE 3.5 | Provider=SQL_CE3.5; Data Source=database_path |
Provider=SQLCE; Data Source=\Harddisk\MyDatabase.sdf
The exact path depends on how your device's non-volatile memory is organized. Please consult the manufacturer's documentation.
Provider=SQLCE; Data Source={DatabaseFile}
The curly brackets ({}) indicate that it's a tag reference.
Please keep in mind that SQL CE is only intended for lightweight databases and simple transactions. It cannot efficiently handle large amounts of data, such as the Alarm and Event histories. In those cases, we recommend that you either use the Proprietary history format or use a more powerful relational database like the full version of Microsoft SQL Server. If you must use SQL CE, then we recommend that you use it only as a Secondary database with the Store and Forward option selected. For more information, see Configuring the Alarm and Event History databases.
IWS | SQL CE |
---|---|
Boolean | int |
Integer | int |
Real | real |
String | nvarchar |