I have a stored procedure that does an insert into an existing table. However, I want to be sure that table is empty before I insert into it. I can't just drop the table each time, because it is being used in replication.
I started my stored procedure with a delete from, but I would really like an extra safety measure to ensure that it is empty before the insert into runs. How can I do that?
Thanks in advance for your help!
Sherry
Here's the first part of my stored proc:
DELETE FROM rfs1.dbo.gmsolrpt
INSERT INTO GMSOLRPT
SELECT TOP 100 PERCENT . . .
I started my stored procedure with a delete from, but I would really like an extra safety measure to ensure that it is empty before the insert into runs. How can I do that?
Thanks in advance for your help!
Sherry
Here's the first part of my stored proc:
DELETE FROM rfs1.dbo.gmsolrpt
INSERT INTO GMSOLRPT
SELECT TOP 100 PERCENT . . .