Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Is T-SQL Procedural ?

Author  Topic 

ASP_DRUG_DEALER
Yak Posting Veteran

61 Posts

Posted - 2004-06-16 : 11:00:52
I have a stored procedure that deletes all records in a table and then turns around and imports the updated records.

DELETE FROM T1;

INSERT INTO T1......;

X002548
Not Just a Number

15586 Posts

Posted - 2004-06-16 : 11:37:55
Is there a question?

I think I'd do TRUNCATE and bcp...



Brett

8-)
Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2004-06-16 : 12:33:15
I think he is asking if the delete will happen first.
The answer is yes.

Damian
Go to Top of Page
   

- Advertisement -