salvatoredoria
Programmer
i have a stored procudere in SQL Server and i have this problem:
The stored procedure has a return value (@codice0) that can be read with sql analyzer, but i don't know how to get the value in visual basic.
for example:
'
in Query Analyzer
'
declare @myid int
EXEC @myid=sp_Class001_Insert 01,'AGHI','AGHI',4,20040525,1227,0
SELECT @myid
'
returns the value
'
' In Visual Basic
'
Myconn.execute "sp_Class001_Insert,'AGHI','AGHI',4,20040525,1227,0"
with this statement i don't know how to get the return value.
Thanks to all
The stored procedure has a return value (@codice0) that can be read with sql analyzer, but i don't know how to get the value in visual basic.
for example:
'
in Query Analyzer
'
declare @myid int
EXEC @myid=sp_Class001_Insert 01,'AGHI','AGHI',4,20040525,1227,0
SELECT @myid
'
returns the value
'
' In Visual Basic
'
Myconn.execute "sp_Class001_Insert,'AGHI','AGHI',4,20040525,1227,0"
with this statement i don't know how to get the return value.
Thanks to all