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
XP Clients won't pick up SBS 2008 Drive Mappings from Group Policy
T-SQL how to compare two tables from two different database servers
Admin account - Windows servers - notification when accessed
Windows 7 right click option
T-SQL output to html
webservice.htc memory leak quick fix
Passing datagrid data between form fields
Dymo Label add-in
Change logon gui windows 2003
Decipher Image Size in RTF coding (HARD ONE!!!)