Groups | Blog | Home
all groups > sql server (alternate) > november 2005 >

sql server (alternate) : Select into / Linked Server / Missing IDENTITY attribute


kharless NO[at]SPAM qwest.net
11/28/2005 12:16:04 PM
Greetings,

If I use a "select into" to clone a table, all attributes are created
correctly, however, if I use the same statement across a linked server,
my identity column loses its IDENTITY specification.

Is this a known issue or basic functionality of using "select into"
with linked servers?

Kurt
Erland Sommarskog
11/28/2005 10:48:24 PM
(kharless@qwest.net) writes:
[quoted text, click to view]

I don't know if it's documented, but it makes sense. With a linked table,
SQL Server has knowledge about metadata in a more generic format. That
linked server could be something radically different from SQL Server,
for instance Oracle.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
Greg D. Moore (Strider)
11/29/2005 2:13:44 AM

[quoted text, click to view]

And serves as a good example of why Celko is continually ranting (I want to
say warning but let's call a spade a spade) about the dangers of using an
IDENTITY column.


[quoted text, click to view]

AddThis Social Bookmark Button