Articles
Editorials
Stairways
Forums
Forums home
Active threads
Latest topics
Most popular
Leaderboard
Scripts
QotD
Books
Blogs
Register
Login
Write for us
Menu
Articles
Editorials
Stairways
Forums
Forums home
Active threads
Latest topics
Most popular
Leaderboard
Scripts
QotD
Books
Blogs
Write for us
Register
Login
mittal618
Profile
Topics Started
Replies Created
Leaderboards
Forum Replies Created
Viewing post 1 (of 1 total)
RE: Store result in Variable of dynamic query
Ken McKelvey - Tuesday, November 11, 2008 5:24 AM
Use sp_executesql with an OUTPUT parameter.
DECLARE
@word
sysname
EXEC
sp_executesql N
'SELECT TOP 1 @DynamicWord = [name]...
April 7, 2017 at 12:44 pm
#1937274
Viewing post 1 (of 1 total)