Hi all ,
I am loading data files intp Sql server 2005. I must delete then insert a large number of rows into tables.
The Queries for examples are
for the Insert queries I tried to insert to a temp table and then insert to customer but the performance was the same.
Any Idea or suggestion on improving the performance of my queries and speeding up my queries
Cheers!!
I am loading data files intp Sql server 2005. I must delete then insert a large number of rows into tables.
The Queries for examples are
Code:
Delete from customer where name='John' and country='US'
.
.
Insert into customer values ('John','Bray','US')
Insert into customer values ('Jim','Adams','US')
Insert into customer values ('Chris','Peters','CA')
Code:
Insert into customer (name, country)
select 'John','Bray','US'
union all
select 'Jim','Adams','US'
union all
select 'Chris','Peters','CA'
Cheers!!