HPC.ru lite - Все форумы
Форум: Программирование для КПК
Тема: Импорт/экспорт в MS SQL CE

[Ответить]
Slirek [24.05.2005 13:13] Импорт/экспорт в MS SQL CE:
У меня возник вопрос в сравнении производительности базы покетаксеса и базы MS SQL CE. Запрос к таблице базы аксеса, состоящей из 500 наименований, имеет задержку примерно 2 сек. Как теперь мне перегнать данные в SQL формат? Понятно, что можно программно создать базу, но нет ли средств импорта/экспорта в формат MS SQL CE ???
Slirek [27.05.2005 11:52] :
Вот кое что нашел по своему вопросу. Только не испробовал пока. Не могу запустить примерчик: NorthWindCE, в котором как раз речь идет о репликации.

You can use the RDA Pull method with the no-tracking option to pull all tables to your SQL Server 2000 CE database, along with the data. If you have default values on any columns, referential integrity (RI), or any indexes, you must run the proper data definition commands to create these properties. For more information, please refer to the Introducing Remote Data Access, Planning for RDA, and Implementing RDA topics in SQL Server 2000 CE Books Online.

RDA does not pull referential integrity or multiple tables at the same time. RDA pulls only the primary key (PK) index and the table that is specified in the Pull command. You must add back all the referential integrity to the local version of the table by using the ALTER TABLE command.

Both RDA and replication can copy tables from SQL Server to the SQL Server 2000 CE database on the device. This is the "easiest" method to use because this method performs data type mappings for you automatically. Replication only works with Microsoft SQL Server 2000. If your requirement is simple, then RDA is for you. However, if you need to change data on both the server and the device, and have that data merge, and the server is SQL Server 2000, consider Replication as the method to use. Replication requires more configuration on the server, because you need to publish the SQL Server data first.

You can also run SQL statements on the local database that is on the device to create and insert data. The grammar for SQL Server 2000 CE is a subset of SQL Server.
[Ответить]