Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
declare @sSQL varchar(2000)
declare @table_name varchar(255)
DECLARE c1 CURSOR FOR
SELECT table_name from information_schema.tables
where table_name in ('Table1', 'Table2', 'Table3') --replace with all tables you want
order by table_name ASC
OPEN c1
FETCH NEXT FROM c1
INTO @table_name
WHILE @@FETCH_STATUS = 0
BEGIN
SET @sSQL = 'DELETE ' + @table_name + ' WHERE assigned_date > ''10/07/2001'''
SELECT @sSQL
-- Get the next author.
FETCH NEXT FROM c1
INTO @table_name
END
CLOSE c1
DEALLOCATE c1
GO