|
|
Question : how to insert into a table through linked server with identity column
|
|
Hi,
I want to insert one row of data into a table sitting on a linked server, the target table has an identity column, and I want to insert data for this column as well, I tried the following, it does not work set identity_insert [LinkedServerName].[DBName].[dbo].[TableName] on I got error Table 'LinkedServerName.DBName.dbo.TableName' does not exist or cannot be opened for SET operation.
I wondered whether the "Set" can be applied over a linked server? if not, what are my options?
thanks
|
Answer : how to insert into a table through linked server with identity column
|
|
>I wondered whether the "Set" can be applied over a linked server? no, this is not possible. You have to perform the SET operations only to local server. To workaround, you need some complex setup or DTS which is able to do it...
|
|
|
|
|