Link to home
Start Free TrialLog in
Avatar of area96
area96

asked on

SQL query returning one value into variable

Ok I've been trying various different ways of doing this all day but with no luck.

I need to get a URL string from my MSSQL database,this string needs to be converted to a variable.

How can i use my SQL query that will product one result (a string) then put that result into a variable?

Thanks! This seems like such a simple issue to resolve but has given me such grief..
Avatar of Aneesh
Aneesh
Flag of Canada image

declare @variable varchar(100)
SELECT @Variable = url
from urtable
Where  
ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial