Hi,
I accidentally rename dbo.AA table to dbo.AA_1 and now it has become dbo.dbo.AA_1 table. Is there a way to remove the dbo prefix? Please advise. Thanks.
Normally, you cannot have a table name with a dot in it. Of course, you can actually name your tables anything you want if you use square brackets, like this...
select * into dbo.AA_1 from dbo.[!][[/!]dbo.AA[!]][/!]
-George
Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
You do know that Select Into will only copy the data, don't you? The new table will not have the same indexes or constraints as the original table. There are probably other things that don't get copied to the new table too.
-George
Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.