SprintFlunky
Programmer
I have a stored procedure passing in the variables I want inserted. The key is a generated Sequence number that I want returned if the insert was successful. Normal INSERT INTO... Values (@..., @,,,); . Then I issue a Set @newRec = Select @@Identity. The @newRec is defined as a passed variable OUTPUT along with all of the passed input variables for the insert.
Here is the problem - I get the new record number returned from the SP, however, the row was not inserted into the table. If I remove the Select statement, the insert works just fine.
It there some trick to passing input and output variables to astored procedure?
Thanks for the help,
Flunky
Here is the problem - I get the new record number returned from the SP, however, the row was not inserted into the table. If I remove the Select statement, the insert works just fine.
It there some trick to passing input and output variables to astored procedure?
Thanks for the help,
Flunky