I am running vb.net 2003 and sqlserver 2000. I want to call a stored procedure which is on the server from within a web service and use it to populate a datagrid in a windows application. How do I write code in the webservice to access the stored procedure and return the result (a table)?
Any kind of help will be most appreciated.
Loading
PHANI NADIGADDAPosted Nov 20, 2006, 10:10 AM
Call a stored procedure in web method using System.Data.SqlClient and make a web method return type to DataSet.
In your front end assign the result of web method to Dataset and Bind the dataset to datagrid.
ALL THE BEST
You can do it.