后台是用SQL SERVER,前台是用VB;經常在前台運行某一個大查詢時,用profiler追蹤,發現大塊大塊出現下列東東:
Eventclass                       TextData
RPC:Completed          exec sp_cursorfetch 180150000, 16, 1, 1
RPC:Completed          exec sp_cursorfetch 180150000, 16, 1, 1
RPC:Completed          exec sp_cursorfetch 180150000, 16, 1, 1
RPC:Completed          exec sp_cursorfetch 180150000, 16, 2, 2
RPC:Completed          exec sp_cursorfetch 180150000, 16, 1, 2
RPC:Completed          exec sp_cursorfetch 180150000, 16, 2, 2
RPC:Completed          exec sp_cursorclose 180150000
RPC:Completed          exec sp_cursorfetch 180150000, 16, 1, 1
RPC:Completed          exec sp_cursorfetch 180150000, 16, 1, 1
RPC:Completed          exec sp_cursorfetch 180150000, 16, 2, 2
...
接下來SQL就連不上線;但是在后台執行存儲過程,用profiler追蹤就不會出來以上東東.請問到底是后台還是前台的問題?
而且每次踫上這種問題,重新啟動SQL服務和注銷服務器重新登陸都沒用,只有重新啟動WINDOWS才可以讓SQL連線.