Wrapping a table into Html Table in SQL Server 2005-2008: Say you like to wrap the query to check last back dates on a SQL instance into a html table below: select name, convert(varchar(10),create_date,103) as createddate ,recovery_model,compatibility_level from sys.databases To Wrap it into a HTML use the below code: Declare @Body varchar(max), @TableHead varchar(max), @TableTail […]
↧