Using variables in Select Statements
- From: Dunner <Dunner@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Jul 2005 06:36:04 -0700
Hi guys,
I was wondering if it is possible to use a variable in the from part of a
select statement as in...
select *
from @myVariable
Basically I am writing stored procedure that the user passes a table name to
and then it goes off and grabs info from this table and does some funky
stuff. Is it possible to make the statements semi-dynamic in that manner?
Cheers
.
- Follow-Ups:
- Re: Using variables in Select Statements
- From: Hugo Kornelis
- Re: Using variables in Select Statements
- Prev by Date: Re: service
- Next by Date: Re: Using variables in Select Statements
- Previous by thread: N prefex in a non-unicode database
- Next by thread: Re: Using variables in Select Statements
- Index(es):