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
Combining Arrays in VBA
SQL query to select distinct ID for latest date past June/01/2009 where there are (possibly) more than one occurrence of each ID
User that setup a rule via Outlook 2007 that is forwarding to a dead mailbox...
Ho to make Browser Task flashing in Taskbar
VXDLDR / windows protection error.
Data Lock & Threading
Find if time period goes through specific time
Access 2K / 2003 bug?
Install SQL 2008 Developer first, then Visual Studio 2008 Professional?
MS Office 07 (Student) installations