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 |
djshusko
Starting Member
2 Posts |
Posted - 2008-02-27 : 11:15:20
|
I'm trying to write a stored procedure that uses a second stored procedure in its where clause. I have a stored procedure that accepts two parameters and outputs a float. What I'd like to do is have a stored procedure that accepts one parameter and has a select statement such as:Select * from table WHERE STOREDPROCEDURE(@param1,table.field)>5If anyone can give me some advice I'd apprectaite it. Thanks |
|
jdaman
Constraint Violating Yak Guru
354 Posts |
Posted - 2008-02-27 : 11:19:09
|
You cannot use a sp like this. Change your sp to a function if you intend to use it this way. |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|