sql server 2005 存储过程  基础
数据库结构为:n张相同结构的表  表名为T_table1,T_table2.....T_table n
我想写如下的一个存储过程如下:
create procedure   TableSlect(
      @sTable [char] (20),
)
as
begin
select * form @sTable
end
这样这个存储过程就可以试用所有的表了
不知道这样行不行,
如果不行那么如果要完成这个功能需要怎么做???
------解决方案--------------------
create procedure TableSlect(
 @sTable [char] (20)
)
as
begin
exec('select * form '+@sTable)
end