我是VBScript中的新手,我遇到了以下問題。我想從SQL服務器數據庫獲取數據並允許RecordCount屬性。下一個代碼獲取數據,但RecordCount被禁用。如何啓用此屬性VBscript RecordCount屬性
Const DB_CONNECT_STRING = "Provider=SQLOLEDB.1;Data Source=BUG\SQLSERVER2005;Initial Catalog=test;user id ='sa';password='111111'"
Set myConn = CreateObject("ADODB.Connection")
Set myCommand = CreateObject("ADODB.Command")
myConn.Open DB_CONNECT_STRING
Set myCommand.ActiveConnection = myConn
myCommand.CommandText = ("select * from klienci k where k.indeks = " & oferty(16))
Set klienci = myCommand.Execute
非常感謝。這非常有幫助 – user2201747 2013-04-24 06:15:01