Dim conn As ADODB.Connection
conn.BeginTrans
'.....資料異動......
conn.CommitTrans
conn.BeginTrans跟conn.CommitTrans這兩行有什麼用意嗎
vbqa 發表在 痞客邦 留言(1) 人氣(144)
請問各位前輩:
有一個如下的程式片段
Set conn= Server.CreateObject("ADODB.Connection")
conn.open "DataBase"
Set rs = Server.CreateObject("ADODB.Recordset")
vbqa 發表在 痞客邦 留言(2) 人氣(92)
I used AdoDB.Connection.Cancel method to terminate
an asynchronous connection.execute call. But Cancel method itself takes a very long time to complete. Anyway to
stop an asynchronous execution immidieately, but without killing the connection ?
I still need the same connection, so don't want to use these staement:
closing a connection and set connection = Nothing?
vbqa 發表在 痞客邦 留言(0) 人氣(20)
Set rs1 = New ADODB.Recordset
rs1.Fields.Append "a", 10, 20
rs1.Fields.Append "b", 10, 20
rs1.Fields.Append "c", 10, 20
rs1.Fields.Append "d", 10, 20
vbqa 發表在 痞客邦 留言(2) 人氣(130)