INSERT INTO [Test].[dbo].[address1]
(
[ID] ,
[customerId] ,
[line1] ,
[line2]
)
( SELECT
[ID] ,
[customerId] ,
[line1] ,
[line2]
FROM
[dbo].[address]
ORDER BY
[customerId]
)
the funny thing is if I remove the brackets from around the select
statement it works fine any one know why this is the case???
Also, not sure why you have the ORDER BY, as tables are unordered sets and inserting data in order does not make sense.
--
Plamen Ratchev
http://www.SQLStudio.com
//Peter
"Plamen Ratchev" <Pla...@SQLStudio.com> wrote in message
news:sdmdnbACAZlgLZvW...@speakeasy.net...