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 - 2001-06-17 : 19:35:08
|
Sreenivas writes "I need to pass the whole condition as a string to the stored procedure. For example I passed the condition to the Stored Procedure "where Salary>=10000 and Salary<=20000" the parameter I named it as say @strCond.
Now @strCond contains the condition as string. How can I use this condition in the string in my SQL statement?
I tried select * from Table_name @strCond ---> Failed I tried select * from Table_name '@strCond' ---> Failed
Can you help me?
Sreenivas" |
|
|
|
|
|