IDENTITY Insert doesnt work for Linked servers

From: Sachin (Sachin_at_discussions.microsoft.com)
Date: 02/21/05


Date: Mon, 21 Feb 2005 07:51:02 -0800

Hi Everybody,

In my program, I am inserting rows from the source database to the
destination database which are on different servers. From source database,
with the help of the link server, I am connecting to the destination server.

In the destination table(destination db), I have one identity column which
is a primary key. But in that table, I need to insert the rows with the same
values as in the source table(source db). So i am using

SET IDENTITY_INSERT [linked server].[database].[user].[tablename] ON

But this when executed shows me an error - "Table does not exist or cannot
be opened for SET operation."

Please tell me how to make the identity insert ON on the table through the
linked server. I can execute the same command on any table on the same
database server, but not on destination database server.

Thanks.



Relevant Pages

  • Re: C# and MSAccess
    ... > '' Connection to Source database ... > Dim cnnS As New ADODB.Connection ... > ' Connection to Destination database ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Oracle table Replication between versions
    ... Source database is version 8.1.7.4 ... Destination database is version is 10.2 ... Unfortunately upgrading the Source database is not an option for us due ... The better solutions start with the advent of Oracle 9i and progress ...
    (comp.databases.oracle.misc)
  • Re: Failed to copy objects from MS SQL Servert to MS SQL Server
    ... >>I'm trying to copy objects and data between 2 SQL Server databases using ... >>I select the source and destination database and leave everything as ... > My own experience has been that I cannot successfully copy a database from ...
    (microsoft.public.sqlserver.server)
  • Re: Failed to copy objects from MS SQL Servert to MS SQL Server
    ... >>I'm trying to copy objects and data between 2 SQL Server databases using ... >>I select the source and destination database and leave everything as ... > My own experience has been that I cannot successfully copy a database from ...
    (microsoft.public.sqlserver.programming)
  • Re: Failed to copy objects from MS SQL Servert to MS SQL Server
    ... >>I'm trying to copy objects and data between 2 SQL Server databases using ... >>I select the source and destination database and leave everything as ... > My own experience has been that I cannot successfully copy a database from ...
    (microsoft.public.sqlserver.clients)