December 29, 2003 at 3:44 pm
Hi,
I am copying data from one SQL Server to another via DTS copy objects task.
Though I have enabled Drop Destination Objects first in the DTS task, objects in the destination are not being dropped and the DTS fails, due to the objects already existing in the destination.
Does anyone know a quick way to drop these destination Stored Procs?
Thanks!
December 31, 2003 at 10:18 am
select * from sysobjects where type = 'proc' and then run this in a cursor with exec( drop procedure xx) in the loop./
Steve Jones
http://www.sqlservercentral.com/columnists/sjones
The Best of SQL Server Central.com 2002 - http://www.sqlservercentral.com/bestof/
January 2, 2004 at 10:05 am
Thanks,
Worked great!
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply