I am trying to get some old VB6 code to work with SQL Server Compact.
I can connect, open the database and all seems well. I can run insert select commands which
Replace Set rs = mCmd.Execute with:
Set rs = mCmd.Execute
set rs = new ADODB.Recordset rs.Open "select * from myTestTable", mDBConnection, adOpenDynamic, adLockOptimistic
The adOpenDynamic will allow a forward/backward read through to get your recordcount.
adOpenDynamic