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
Linked Server Question - SQL Server Express 2005
Crop Images
MS Access- populating first record on a form
ReportListener printing to active form or screen before printing report
Creating Log table
Need help with exisiting code. reading attachments and save to MS Access
How to calculate the sum of a bound column in a GridView control for manipulation in VB Code-Behind
Draw a scroll bar into non-client area
Sharepoint Moss Team Site vs Publishing Site
mail rejected because your IP is in DUL