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
Subform last record not showing on report
how to import multiple contacts into office communicator 2007?
HTTP 403.4 (SSL) error AFTER secure logon to OWA
I need to save *dynamic* application settings in .NET 2.0 Winforms
Migration to Exchange 2010 problems
How do you change the default date in a mysql database from US format yyyy-mm-dd to UK format dd-mm-yyyy
Improving as a Programmer
Cybersource Error 80070005 System.UnauthorizedAccessE<wbr />xception: Retrieving the COM
Use xml parameter in SQL Server select
Exchange Service Pack 2 Removal