Microsoft
Software
Hardware
Network
Question : I have a select query that I would like to add string data to
I would like to have my query return the following
SELECT dirID, name, email,
http://www.details.aspx?d
irID=
{ + dirID + } AS qs
FROM directors
I get an error when I try this. How can I create this http query string as a result in my query?
Sample of the query Im trying to create
http://www.details.aspx?d
irID=
{0}
Answer : I have a select query that I would like to add string data to
You have to use quotation marks and convert dirId to varchar
SELECT dirID, name, email, '
http://www.details.aspx?
dirID=
{' + convert(varchar(max),dirID
) + '}' AS qs
FROM directors
Hope it helps
Lo
Random Solutions
LINQ QUERY TO RETURN DISTINCT DATETIME STAMPS
working on rdl files through vb.net using bo
How do I restore system from Windows 7 backup?
Deploy Printers to Vista without Server 2008 or Server 2003 R2
add select count in query
How do rows get into the msp_assignments_saved as opposed to the msp_assignments tables
Select min value from multiple tables
Email forwarding problem
Html Editor by Carl Nolan
Repeat Header Rows on Each Page of the Report