DECLARE @SQL VARCHAR(1000) DECLARE @tempName VARCHAR(1000) DECLARE @count VARCHAR(1000) select @count = COUNT(*) from dbo.sysobjects where type = 'U' and name like 'smith%' while @count > 0 Begin Select @tempName = name from dbo.sysobjects where type = 'U' and name like 'smith%' exec('drop table ' + @tempName) set @count = @count - 1 END
DECLARE @SQL VARCHAR(1000) DECLARE @tempName VARCHAR(1000) DECLARE @count VARCHAR(1000) select @count = COUNT(*) from dbo.sysobjects where type = 'p' and name like 'smith%' while @count > 0 Begin Select @tempName = name from dbo.sysobjects where type = 'p' and name like 'smith%' exec('drop procedure ' + @tempName) set @count = @count - 1 END
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add support@smith-consulting.com to your trusted senders list in your email software.