ADO Connection, Command, Recordset, and Parameter Object Example
Version Compatibility: Visual Basic 6, Visual Basic 5
The example is based on a stored procedure in a SQL Server database. The procedure is as follows:
Procedure GetRecords @rowC int output, @statement varchar(50) output As select * from exe /*You can use any table which is present in the database*/ set @rowC=@@rowcount set @statement='hey good work..buddy' return
For more, information visit: http://www.geocities.com/priyadarshu
Instructions: Copy the declarations and code below and paste directly into your VB project.