Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Select into / Linked Server / Missing IDENTITY attribute
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


Report this thread to moderator Post Follow-up to this message
Old Post
kharless@qwest.net
11-29-05 01:25 AM


Re: Select into / Linked Server / Missing IDENTITY attribute
(kharless@qwest.net)  writes:
> 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?

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/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

Report this thread to moderator Post Follow-up to this message
Old Post
Erland Sommarskog
11-29-05 01:25 AM


Re: Select into / Linked Server / Missing IDENTITY attribute
"Erland Sommarskog" <esquel@sommarskog.se> wrote in message
 news:Xns971CF1DF5601
EYazorman@127.0.0.1...
> (kharless@qwest.net) writes: 
>
> 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.
>

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.


>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/pr...oads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodin...ions/books.mspx



Report this thread to moderator Post Follow-up to this message
Old Post
Greg D. Moore \(Strider\)
11-29-05 01:25 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 03:47 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006