I know that, in VB6 with standard ADO (not .NET), you had to specify a Command Object, with the following Properties
Quote:
quote:
'Constants
Public Const DBPROPVAL_UP_CHANGE = 1
Public Const DBPROPVAL_UP_DELETE = 2
Public Const DBPROPVAL_UP_INSERT = 4
'Connection, Command and Recordset objects
sConnectionString = "Provider=IBMDA400;Data Source=" & System & ";Transport Product=Client Access;SSL=DEFAULT"
With cn
.CursorLocation = adUseServer
.Open sConnectionString, UserID, PWD
End With
With cm
.ActiveConnection = cn
.Properties("Updatability") = DBPROPVAL_UP_CHANGE + DBPROPVAL_UP_INSERT + DBPROPVAL_UP_DELETE
.CommandText = sSQL
End With
rs.Open cm.CommandText, cn, adOpenStatic, adLockReadOnly
|
I'm also still struggling with reproducing this in ADO.NET...:(
But then again, that's the fun of the job;)
The further away I get from the things I care about,
The less I care about how much further away I get