Hi,
The CPU usage goes up 100%.
This is the scenario:
We have ACCPAC program running its database in a server with Pervasive V8.
We have some VBA customized programs that use ADO to connect to that database as following:
Set oCon = New ADODB.Connection
oCon.ConnectionString = "Provider=PervasiveOLEDB.8.10;Data Source=DBSEAL;Location=powervault"
oCon.CursorLocation = adUseClient
oCon.Open
Set oComTra = New ADODB.Command
oComTra.CommandText = "SELECT IDCUST, IDINVC, CNTBTCH, CNTITEM, CNTLINE, IDARACCT FROM ARATR"
oComTra.CommandType = adCmdText
oComTra.ActiveConnection = oCon
Set oRecTra = New ADODB.Recordset
Set oRecTra.Source = oComTra
oRecTra.CursorType = adOpenStatic
oRecTra.LockType = adLockReadOnly
oRecTra.Open
What I have noticed is that during the time that the program is opening the ADO recordset the CPU in the server goes up 100% an all other processes in all workstations get slow.
What could be the problem?
Any help appreciated.
Thanks, Jose.
The CPU usage goes up 100%.
This is the scenario:
We have ACCPAC program running its database in a server with Pervasive V8.
We have some VBA customized programs that use ADO to connect to that database as following:
Set oCon = New ADODB.Connection
oCon.ConnectionString = "Provider=PervasiveOLEDB.8.10;Data Source=DBSEAL;Location=powervault"
oCon.CursorLocation = adUseClient
oCon.Open
Set oComTra = New ADODB.Command
oComTra.CommandText = "SELECT IDCUST, IDINVC, CNTBTCH, CNTITEM, CNTLINE, IDARACCT FROM ARATR"
oComTra.CommandType = adCmdText
oComTra.ActiveConnection = oCon
Set oRecTra = New ADODB.Recordset
Set oRecTra.Source = oComTra
oRecTra.CursorType = adOpenStatic
oRecTra.LockType = adLockReadOnly
oRecTra.Open
What I have noticed is that during the time that the program is opening the ADO recordset the CPU in the server goes up 100% an all other processes in all workstations get slow.
What could be the problem?
Any help appreciated.
Thanks, Jose.