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?
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?