use lab_dbXXX

declare @count int
declare @max int
declare @tsql nvarchar(255)

declare @tbl table(rownum int IDENTITY (1, 1) Primary key NOT NULL , cmd nvarchar(255))
insert into @tbl(cmd) select ('delete ' + name) as cmd from sys.tables  where name like 'tbl_lab_information%' or name ='tbl_lab_Analyzer_Result'
select @max = COUNT(*) from @tbl

set @count=0
while (@count <= @max)
begin
select @tsql = cmd from @tbl where rownum=@count
print @tsql
exec sp_executesql @tsql
select @count =(@count +1)
end

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: