March 13, 2006 at 7:50 am
March 13, 2006 at 8:22 am
The command you are looking for is SELECT INTO (see the books online)
Example
SELECT Shippers.*, Link.Address, Link.City, Link.Region, Link.PostalCodeINTO NewShippersFROM Shippers JOIN LinkServer.DB.dbo.Shippers AS Link ON (Shippers.ShipperID = Link.ShipperID)
March 13, 2006 at 8:29 am
Thanks. but I do not know why query is right which post on the other website.
March 13, 2006 at 8:58 am
You have two choices.
1. Create a new table. Then insert all the rows from the old table into the new table (INSERT tblname SELECT * etc)
or
2. Use SELECT INTO. This creates the new table using the data from the original table.
-SQLBill
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply