使用ado連接sql匯入數據,sqlservr.exe進程佔用內存虛高,怎麼釋放??
LOCAL oConn As Adodb.ConnectionLOCAL ohead As Adodb.RecordSet
oConn = CreateObject("ADODB.Connection")
ohead = CreateObject("ADODB.RecordSet")
oConn.Open(cConString)
ohead.ActiveConnection = oConn
ohead.LockType = 4 && adLockBatchOptimistic
ohead.CursorLocation = 3 && adUseClient
ohead.CursorType = 3 && adOpenStatic
ohead.Open("SELECT * FROM head WHERE 1 = 0",oConn,3,4)
ohead.AddNew()
每1000記錄提交一次
oConn.BeginTrans()
ohead.UpdateBatch()
()
提交記錄sqlservr.exe進程占用內存一直增加,退出exe也沒恢復,要怎麼去釋放占用的內存??求教。。
[ 本帖最后由 angstar 于 2015-6-9 11:09 编辑 ]