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 |
|
dasu
Posting Yak Master
104 Posts |
Posted - 2004-11-26 : 02:38:03
|
| i have following situationi need to call a stored procedure for each and every record of t_cbs_rqst table while updating t_cbs_rqst table.iam sending u the model so please suggest me the solutionstored procedure:CREATE PROC CALLING @A INT OUTPUTASSET @A=1update statement :here in calling stored procedure we need to pass the record as input parameter and rqst_cd is out put parameterdeclare@a intUPDATE T_CBS_RQST SET rqst_cd=exec CALLING @a output |
|
|
dsdeming
479 Posts |
Posted - 2004-11-29 : 08:51:54
|
| If you can write CALLING as a user-defined function, you can call the function in an update statement.UPDATE T_CBS_RQSTSET rqst_cd = CALLING( @a )Dennis |
 |
|
|
|
|
|