Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: amrita418
  • Content: Threads
  • Order by date
  1. amrita418

    store the result of a dynamic sql stmt

    Hello everyone, I am not sure how to compare the result of a dynamic sql stmt in t-sql. Sorry if it is a dummy question. For example: declare @v_test varchar(10), @v_table varchar(20) set @v_table = 'emp' -- this works exec ('select top 1 description from ' + @v_table) -- but what I need...

Part and Inventory Search

Back
Top