討論串[VB6 ] RS.RecordCount的值 一直是 -1 ? @@
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者JacobTai (不想跟世界說話)時間19年前 (2006/11/03 13:14), 編輯資訊
0
0
0
內容預覽:
如果真的是用 Connection String 而不是用 Connection 的話.... Server 應該過沒多久就會叫了吧.... 之前同事有過...用 Connection String. 每次開 recordset 就會新開一個 connection. 不到一小時 server 就說連

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者twtimbow (裝口愛歐里桑)時間19年前 (2006/11/02 12:32), 編輯資訊
0
0
0
內容預覽:
RS.Open 裡面的參數用 ConnString ....怪怪的. 另外請指定 CursorType參數. 可以改 sql="select count(*) as 筆數 from customer". --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 211.20.78.35.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者Hotan (...)時間19年前 (2006/10/31 18:07), 編輯資訊
0
0
0
內容預覽:
程式大致如下. CN.Open ConnString. sql = "SELECT customer_No FROM customer order by customer_No". RS.Open sql, ConnString, , , adCmdText. If RS.RecordCount <
(還有57個字)
首頁
上一頁
1
下一頁
尾頁