Importing Data into SQL Server Compact
In SQL Server Management Studio, when you right-click on a database, you will notice that you can choose to import or export data.
SQL Server 2005 Compact Edition
- Create an Integration Service project in VS2005
- Create two Connection Managers - one for connecting to the SQL Server 2005 table, and the other one to connect to the SQL Server Compact Edition table
- In the Connection Manager panel, right-click, and Select to Add a Connection
- After you installed SQL Server Compact Edition, you will notice that there is a Connection Manager Type for SQL Mobile (i.e SQL Servcer Compact Edition). You can use that to connect to the SQL Server Compact Edition database. - From the data flow Source, choose to create a OLE DB Source
- From the data flow Destination, choose to create a SQL Server Compact Edition Destination.
- Once completed, link the output of OLE DB Source to the input of the SQL Server Compact Edition Destination.
Check out the diagram to see the complete data flow. Run it, and you can now import data into a SQL Server Compact Edition table effortlessly.

0 Comments:
Post a Comment
<< Home