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 |
|
rizwan
Starting Member
9 Posts |
Posted - 2002-05-14 : 01:42:35
|
| Dear ReaderI have a Stored Procedure named 'RtnUsers'this Procedure returns today's users after some manuplationI can Call it asExec RtnUsers '4/12/2002'and i want to call it through select QueryCan I Do That ?it should look like Select * from (Exec RtnUsers '4/12/2002')My Email Addrressrizwan_1574@hotmail.comNothingEdit by Merkin : Moving to the right forumEdited by - merkin on 05/14/2002 01:51:39 |
|
|
Merkin
Funky Drop Bear Fearing SQL Dude!
4970 Posts |
|
|
rksingh024
Yak Posting Veteran
56 Posts |
Posted - 2002-05-14 : 01:56:31
|
| Use User-defined function.e.g.CREATE FUNCTION rtnUsers(@date datetime)RETURNS @users TABLE (u_name varchar(20),u_id int)ASBEGIN --Your statements RETURNEND---and then use it in select statementSELECT * FROM rtnUsers('14 May 2002')Ramesh Singh |
 |
|
|
|
|
|