You can use the EXECUTE command to run a SQL statement built from concatenated strings. Assumming you've got the sample pubs database installed, try this:<br><br><FONT FACE=monospace><br>use pubs<br>go<br><br>create procedure SelectStarFrom<br>(<br> @TableName varchar(255)<br>)<br>as<br>execute('SELECT * FROM ' + @TableName)<br><br>go<br><br>exec SelectStarFrom 'authors'<br>go<br><br></font><br><br>Note that it is best to use this method only when flexibility is more important than performance. Anytime you use dynamically constructed SQL like this the server will need to take a fraction of a second to recompile the query plan relative to the table name you have supplied. That's no problem if you're building an administrative procedure for occasional use, but you'd want to avoid the technique in areas of an application that will be used intensively. <br>