Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bulk Copy

Status
Not open for further replies.

nayfeh

Programmer
Mar 13, 2002
163
0
0
CA
Hi,

Can someone tell me how to copy a table in query analyser using the BULK COPY command. I have a very large table (4.5 GB) that I tried to copy in enterprise manager from one database to another, and it didn't work since the transaction log would fill up. I would like to omit the transaction log from running and I heard the way to do that is to use the BULK/COPY command.

Any help is appreciated.

Thanks,
TN
 
this is another way to do it, this will only work if the table does not exist in the new datbase


select * into otherdatabase..tablename from source_table

otherwise you will need to do

insert into otherdatabasae..tablename
(
columns go here, * will not work
)
select columns or * from source_table
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top