I think, the amount of Demos (even in this very CodeBank-thread here) should be enough,
to figure things out on your own.
For example, I've posted an RPC_TestWithParams.zip in post #7 in this thread here.
Please make this work for you fully first:
- by starting the Project-Group
- and then by setting a breakpoint in cHandler.cls ... GetServerTime()-method (of the ServerLib-Project which is part of the VB6-Group)
If you have managed that, you are already set-up for "everything else" (including "talking to real, serverside DBs via ADO).
Just tell me, that you indeed end up in a breakpoint in that project -
and let's take "things from there".
I'm hesitant to write "special DB-Demos" for this approach, because it is already generic enough
(using ADO-Rs as transport-vehicles for
any kind of Incoming and Outgoing Parameters already).
You have to fully understand, how to work with RsIn and RsOut:
- using them for "normal Parameter-transport" ...
From there, it is not that large a step, to write your own Sub-Routines in cHandler.cls,
which for example could look as simple like (after hanging the modADOD-module into the ServerLib-Project):
Code:
Public Sub GetServerRs()
If Cnn Is Nothing Then Set Cnn = modADODB.OpenCnn(...) 'set a class-private Cnn-Variable, if necessary
Dim SQL As String: SQL = RsIn(1).Value
Set RsOut = modADODB.GetRs(Cnn, SQL)
End Sub
... to retrieve an ADO-Rs from a priorily opened Cnn
Olaf