Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-05-23 : 08:54:25
|
| kevin writes "OK - I want to use EXEC in a stored proc where the sql string is built up, like:EXEC('Select Count(*) as Rows From ' + @tableName)I want the number of rows in a local variable. But other than inserting the results into a temp table, I cannot seem to getSELECT @Rows EXEC(whatever)to set the value into the local variable. Any help?Thanks" |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|