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
Good Beginner to Advanced Tutorial for XAML
How can I customize the windows password complexity error message that pops up after changing your password in Active Directory?
Custom Site Definition
Login failed for user 'sa'. Reason: Password did not match that for the login provided.
Access 2007 Reports Alternate Row Colors
Search and replace text containing superscripts in Word
vba code to go to a clear the content of a text box and move cursor to that text box
Access Copy Paste Table from Excel
Write Data to a Serial Port
calling oracle stored procedues from VC++ using ADO