Home All Groups Group Topic Archive Search About

Insert Into..Select * from --- minus the Identity column -?

Author
28 Mar 2007 7:38 PM
Rich
I need to insert data into a table in DB2 from a similar table in DB1.  I
want to say

Insert Into tblx Select * from server1.DB1.dbo.tblx

tblx contains 40 columns which I would like to not have to list.  One of the
columns is an identity column.  Is there a way I can run this insert
statement without having to list all the columns?  Note:  tblx on DB2 is
empty, so is there a way I can tell it to let the Identity values from
DB1.tblx in?

Thanks,
Rich

AddThis Social Bookmark Button