G
Guest
hi, iam using vb.net code
this is my stored procedure in sql server.
create proc t1 (@q as int)
as
select * from test where id=@q
GO
------
i am using vb.net code below like this
Dim s As SqlClient.SqlDataReader
Me.SqlCommand1.Parameters("@RETURN_VALUE").Direction =
ParameterDirection.Output
Me.SqlCommand1.Parameters("@q").Value = 1
s = SqlCommand1.ExecuteReader
Do Until s.Read
MsgBox(s(0))
Loop
iam wondering how come iam not able to display msgbox, even though the data
is there.
any changes in the code need or
any changes in the stored procedure.
where should i change...
thanks
this is my stored procedure in sql server.
create proc t1 (@q as int)
as
select * from test where id=@q
GO
------
i am using vb.net code below like this
Dim s As SqlClient.SqlDataReader
Me.SqlCommand1.Parameters("@RETURN_VALUE").Direction =
ParameterDirection.Output
Me.SqlCommand1.Parameters("@q").Value = 1
s = SqlCommand1.ExecuteReader
Do Until s.Read
MsgBox(s(0))
Loop
iam wondering how come iam not able to display msgbox, even though the data
is there.
any changes in the code need or
any changes in the stored procedure.
where should i change...
thanks