C
Chris Botha
Don't know how I'm going to get around this. The idea is that a dataset is
selected from the server using Web Services. Some tables has Identity
columns and I would like to keep them Identity columns in the SQL Mobile and
have the Identity values coming from the server preserved in the table.
Inserting a value into an Identity column is obviously not allowed.
So my solution was to not have the column as an Identity initially, then
insert the data from the server and so the values are preserved. Then to do
an "ALTER TABLE" and set the column to be an Identity column. It does not
work, the error is "The column cannot become an identity column after it is
created".
Strange, they have an example in the SQL Mobile books online with this in
the "ALTER TABLE" section.
In SQL Server there is the "SET IDENTITY INSERT " statement allowing this,
but is not supported by SQL Mobile.
Any ideas or pointers are welcome too.
Thanks.
selected from the server using Web Services. Some tables has Identity
columns and I would like to keep them Identity columns in the SQL Mobile and
have the Identity values coming from the server preserved in the table.
Inserting a value into an Identity column is obviously not allowed.
So my solution was to not have the column as an Identity initially, then
insert the data from the server and so the values are preserved. Then to do
an "ALTER TABLE" and set the column to be an Identity column. It does not
work, the error is "The column cannot become an identity column after it is
created".
Strange, they have an example in the SQL Mobile books online with this in
the "ALTER TABLE" section.
In SQL Server there is the "SET IDENTITY INSERT " statement allowing this,
but is not supported by SQL Mobile.
Any ideas or pointers are welcome too.
Thanks.