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 Wanet Telecoms Ltd 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: skertz
  • Content: Threads
  • Order by date
  1. skertz

    using a variable for a table_name in select

    It is possible to declare a variable, set it and then use it in a select statement like e.g: declare @my_var varchar(31), @db varchar(31) set @db = 'TEST' set @my_var = @db + '..sysobjects' select * from @my_var I'm looking to query other database tables from inside a procedure.

Part and Inventory Search

Back
Top