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-09-18 : 22:07:42
|
| Anand Sahu writes "Create Procedure A@a varchar(50),@b integerAsBegin Insert into Table (FName,Age) Values (@a, @b) Exec Display @a, @bEndCreate Procedure Display@a varchar(50),@b integerAsBegin Select @a 'Name', @b 'Age'EndUsing Vb i am calling the Procedure A as followsWith all other parameters setwith cmd .commandtype = adcmdstroredProcedure .commandtext = 'A' .activeconnection = constrend withset p = cmd.createparameter('p',...,'abc')cmd.appendparameter pset q= cmd.createparameter('q',...,25)cmd.appendparameter qSet rs = Cmd.executeIf not rs.eof then --the error occurs at this stage. intfieldsctr= rs.fields.count strname = rs(0) intage = rs(1)End ifAnd would like to capture the output record of the procedure.It give's a error 3704 'Object operation requested not allowed as the object is closed.Can be capture the output of the Procedure Display which has been excuted inside Procedure A using frontend programing in Visual Basic 6.0" |
|
|
|
|
|