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 @owner sysname
declare @table sysname
declare @cmd nvarchar(500)
declare tcur cursor for
select TABLE_SCHEMA,TABLE_NAME
from INFORMATION_SCHEMA.TABLES
where TABLE_NAME like 'TEST%'
and TABLE_TYPE = 'BASE TABLE'
and OBJECTPROPERTY(OBJECT_ID(TABLE_NAME),'IsMSShipped')=0
open tcur
fetch next from tcur into @owner,@table
while @@fetch_status = 0
begin
set @cmd = N'DROP TABLE ['+@owner+N'].['+@table+N']'
exec(@cmd)
fetch next from tcur into @owner,@table
end
close tcur
deallocate tcur
exec sp_msForEachTable 'drop table ?', @whereand= ' and name like ''v%'' '
select 'Drop Table ' + table_name from information_schema.tables where table_name like 'v%'