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
Creating a word document programatically
VBA ADO: .GetString method causes .MoveNext method to fire - anyone know why?
Sound recorder does not work
move to a row in listview control - MS Access 2003
Cannot join Windows 7 64 bits to SBS 2003 domain
Finding version of ASP.net on Server
Need to add Numeric Field representing Hours and Minutes
How do you truncate a Sql 2000 log file
Export or download file from embeded resource Silverlight
SCVMM 2008 Deployment