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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

performance

Status
Not open for further replies.

gzm219

Programmer
Nov 14, 2003
3
US
In a sql70 stored procedure, I use command:
insert into <target_table> select * from <source_table> to isnert records to target table
but the target table is to very big and has many indexes, the operation is very slow. I recompile several times but still slow. How to improve? please help.

also, when move to sql2000, it much slower than in sql70. many stored procedures have the same results. why?
 
Maybe you can try with bcp with the query option or
also Bulk Insert
 
Hi ronnetp: thank you. Can you tell me the commands for bcp or bulk insert. I only know bcp and bulk insert are for transferring data between data file and sql server, I don't know how to do between tables.
thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top