Hello, we use a manufacturing program called TMM that uses a Progress backend. Recently, we noticed that pretty large files are being created in a directory in TMM. When I open these, it seems to be data from places in the progress database. Any time a query is ran (though VB or WinSQL), it seems a file is created...I am only running SELECT statements, no insert/updates. With WinSQL, there is an option to "Auto Commit Transactions". When this is checked, the file is deleted after the data is stored. Does anyone know how to do this in VB? I have tried cnTMM.CommitTrans, but it doesn't work (I guess it only works when you are inserting data). Below is how I connect to the database:

VB Code:
  1. Public Sub ConnectTMM()
  2. Set cnTMM = New ADODB.Connection
  3.     cnTMM.CursorLocation = adUseClient
  4.     cnTMM.ConnectionString = "Provider=MSDASQL.1;" & _
  5.     "Password=PASS;" & _
  6.     "Persist Security Info=True;" & _
  7.     "User ID=sysprogress;" & _
  8.     "Password=PASS;" & _
  9.     "Data Source=tmm_db10"
  10.     cnTMM.Open
  11. End Sub
  12.  
  13. Public Sub OpenTMM(strsql As String)
  14. Set rsTMM = New ADODB.Recordset 'as we did with the connection    txtQuery.Text = strSQL
  15. If rsTMM.State = adStateOpen Then rsTMM.Close 'If Open,  Close.
  16.      rsTMM.Open strsql, cnTMM, adOpenKeyset, adLockOptimistic, adCmdText  'Opens Recordset.
  17. End Sub