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
Filter Report Based On Multiple Dynamic Combo boxes
Dynamic sql insert identity
Trying to write to MSMQ but no messages going in
Syntax for case select
Need to update Group Policy for an OU
Cannot run Server Management console
Cannot delete File - cannot read from source file or disk
Laptop will not come out of standby
SQL Server 2008 Standard Edition
IIS: How to define multiple web sites, each with their own domain and SSL?