G
Guest
hi,
I have a Stored Procedure in the SQL Server, called prCustomers it is
"select * from customers" - very simple
How am I able to execute the stored procedure get a result set and put the
first record of the result into a single textbox called last name
e.g.
objConnection = New SqlConnection(strConnection)
objConnection.Open()
objCmd = New SqlCommand
objCmd.Connection = objConnection
objCmd.CommandType = CommandType.StoredProcedure
objCmd.CommandText = "prCustomers"
??? objCmd.ExecuteReader(CommandBehavior.SingleResult)
LastName.text = ???
Thanks
Ed
I have a Stored Procedure in the SQL Server, called prCustomers it is
"select * from customers" - very simple
How am I able to execute the stored procedure get a result set and put the
first record of the result into a single textbox called last name
e.g.
objConnection = New SqlConnection(strConnection)
objConnection.Open()
objCmd = New SqlCommand
objCmd.Connection = objConnection
objCmd.CommandType = CommandType.StoredProcedure
objCmd.CommandText = "prCustomers"
??? objCmd.ExecuteReader(CommandBehavior.SingleResult)
LastName.text = ???
Thanks
Ed