I need to know how to execute a stored procedure against MS SQL 7.0 using a VB6 app.
VB6 does not recognize the GO command in stored procedures.
Any help is appreciated.
Printable View
I need to know how to execute a stored procedure against MS SQL 7.0 using a VB6 app.
VB6 does not recognize the GO command in stored procedures.
Any help is appreciated.
the simplest way (least code):
this executes the SP, returns a read only, forward only recordsetCode:dim cn as connection
dim rs as recordset
set cn = new connection
cn.open <connectionstringhere>
set rs = cn.execute "sp_MyStoredProc 'Param1', 'Param2'"
Hope that helps
Tom