|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Transfer Tables?Hi all,
Does anybody know how you would go about moving tables from 1 database to another? Say I had table1 and table2 currently stored in "database1" and I wanted to move them to a new database "database2" what commands would I use? Thanks for your help. robken
DTS Show quote "robken" <robin.kenn***@hotmail.co.uk> wrote in message news:1156407669.985844.13150@i42g2000cwa.googlegroups.com... > Hi all, > > Does anybody know how you would go about moving tables from 1 database > to another? Say I had table1 and table2 currently stored in > "database1" and I wanted to move them to a new database "database2" > what commands would I use? > > Thanks for your help. > or SELECT INTO if this two databases exist on the same sever.
Show quote "Uri Dimant" wrote: > robken > > DTS > > > "robken" <robin.kenn***@hotmail.co.uk> wrote in message > news:1156407669.985844.13150@i42g2000cwa.googlegroups.com... > > Hi all, > > > > Does anybody know how you would go about moving tables from 1 database > > to another? Say I had table1 and table2 currently stored in > > "database1" and I wanted to move them to a new database "database2" > > what commands would I use? > > > > Thanks for your help. > > > > > Tomasz
> or SELECT INTO if this two databases exist on the same sever. Using the above script SQL Server will not transfer PK,FK as well as computed columns if they exist Show quote "Tomasz Borawski" <TomaszBoraw***@discussions.microsoft.com> wrote in message news:9CACDAE8-5DF1-4CFE-886F-4D2EEFB12130@microsoft.com... > or SELECT INTO if this two databases exist on the same sever. > > "Uri Dimant" wrote: > >> robken >> >> DTS >> >> >> "robken" <robin.kenn***@hotmail.co.uk> wrote in message >> news:1156407669.985844.13150@i42g2000cwa.googlegroups.com... >> > Hi all, >> > >> > Does anybody know how you would go about moving tables from 1 database >> > to another? Say I had table1 and table2 currently stored in >> > "database1" and I wanted to move them to a new database "database2" >> > what commands would I use? >> > >> > Thanks for your help. >> > >> >> >> |
|||||||||||||||||||||||