Microsoft
Software
Hardware
Network
Question : T-SQL output to html
I would like to create a string from a simple select clause building an html table with the database rows...
I tried something like this but it didn't add multiple rows:
DECLARE @strHTML varchar(5000)
SET @strHTML = '
'
SELECT '
'+NavPass+'
<
td>'+email
+'r>' as strH FROM tblUser
SET @strHTML = @strHTML + '
'
can someone figure out how to have the return dataset encapsulated in an HTML table?
Answer : T-SQL output to html
DECLARE @strHTML varchar(5000)
SET @strHTML = '
'
SELECT @strHTML + CAST ( ( SELECT
td = NavPass, '',
td = email, ''
FROM tblUser
FOR XML PATH('tr'), TYPE
) AS Varchar(MAX) )+
N'
'
Random Solutions
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI<wbr />_AS" and "Latin1_General_CI_AS" in the equal to operation
Backup of ESXi when no other Windows Server
how to count the number of browser tabs are opened for an application?
Mutiple active forms in Access
Use Variable to address a control
Timers in CWinthread derived classes
Auto save and zip macro that overwrites zipped files when condition is met
DC Promo fails to remove AD. NTDSUtil fails with "The connected server will not remove its own metadata."
SQL Query
Create MDE from MDB hangs