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
Error Code: 403 Forbidden The server denied the specified Uniform Resource Locator (URL).
Updating things based on info in a given record
Server 2003 Terminal Services and cable vs. T-1 internet service
Get machine name using UserID
Import special toolbar from another database
Mail merge office 2003
Printing Drafts in Outlook 2007 - Showing Date sent
Why won't my display information show on calendar
how to uninstall dot net framework 3.5 service pack?
ChDir that chooses a directory in the same parent directory as the current one