VB6 ADODB.Recordset RecordCount property always returns -1

前端 未结 12 1819
别跟我提以往
别跟我提以往 2020-12-11 15:43

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

12条回答
  •  清歌不尽
    2020-12-11 16:21

    Check Recordset Property

    The follow is result that RecordCount value returned by com.status.live code

    +------------------+-------------------+-------------+---------------+--------------+
    |    CursorTypeEnum|adOpenForwardOnly=0|dOpenKeyset=1|adOpenDynamic=2|adOpenStatic=3|
    |CursorLocationEnum|                                                                |
    +------------------+-------------------+-------------+---------------+--------------+
    |adUseServer = 2   |         X         |      O      |       X       |       O      |
    |adUseClient = 3   |         O         |      O      |       O       |       O      |
    +------------------+-------------------+-------------+---------------+--------------+
    

提交回复
热议问题