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
is there a way to programmatically change folder permissions in windows vista?
How to create a webshare folder
MS CRM: How to show email sender in history
Showing user's online availability... what do i need?
Reconnect Flash Disk/ Drive or USB
Item cannot be found in the collection corresponding to the requested name or ordinal (MS ACCESS)
Microsoft Project Server 2007 Permissions questions ?
SBS 2008 insists I have not ran Migration Prep on source server; I have
Clustered IIS on Server 2003
Access Web front-End