BUG: A transfer of data from a SQL Server CE or SQL Server 2005 Mobile Edition database to a remote SQL Server database fails when you use the Push method in SQL Server CE Remote Data Access (330741)
The information in this article applies to:
- Microsoft SQL Server 2000 Windows CE Edition 2.0
- Microsoft SQL Server 2005 Mobile Edition
This article was previously published under Q330741 BUG #: 5612 (SQL Server CE)
SQL Server CE:5612 SYMPTOMSWhen you use the Push method in Microsoft SQL Server 2000 Windows CE Edition 2.0 (SQL Server CE) or SQL Server 2005 Mobile Edition Remote Data Access (RDA) to transfer data from a SQL Server CE or SQL Server 2005 Mobile Edition database table to a remote SQL Server database table, the data transfer may fail. This problem may occur if all the following conditions are true: - The destination table in the remote SQL Server database contains one or more columns that are defined as NOT NULL.
- The SQL Server CE database table contains rows with an empty string or with space values for columns that correspond to the NOT NULL columns on the destination table.
If a row with an empty string or with space values is inserted in the destination table, you may notice NULL values in the nullable columns. You may not notice this behavior when you use replication to transfer data between a SQL Server CE or SQL Server 2005 Mobile Edition database and a SQL Server database. Note This problem does not occur in Microsoft SQL Server 2000 Windows CE version 1.1. CAUSEThe Push method in SQL Server CE RDA or in SQL Server 2005 Mobile Edition RDA treats empty string or space values as NULL values.WORKAROUNDTo work around the problem, change the column definition of the columns that are defined as NOT NULL on the destination table in the remote SQL Server database to NULL.
Note Before you re-define a column of the destination table as NULL, make sure that this change does not affect the integrity or the consistency of your database.REFERENCESFor more information about the Push method in SQL Server CE RDA, visit the following Microsoft Web site:
Modification Type: | Minor | Last Reviewed: | 11/1/2005 |
---|
Keywords: | kbMobility kbClient kbTSQL kbtable kbServer kbDatabase kbprb KB330741 kbAudDeveloper |
---|
|