Results 1 to 6 of 6

Thread: [RESOLVED] Progress Database Problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Posts
    419

    Resolved [RESOLVED] Progress Database Problem

    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
    Code:
    If LostAngel.Tag = "Programming" then
       LostAngel.Caption = "Awake"
    Else
       LostAngel.Caption = "Dreaming of Code"
    End If

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Progress Database Problem

    Transactions aren't appropriate unless the data in the database is being modified in some way, and I dont think there is anything else you can do from VB either.

    I'm pretty sure this is just a setting for the database/software, but can't help more I'm afraid.

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Progress Database Problem

    I had my first experience with a PROGRESS DB this week - and was shocked by the fact that the data was in multiple files in the folder

    At any rate - if PROGRESS supports the "read regardless" concept - ability for some users to see data even if locked - then it's copying rows to a temporary storage location. Note that this is a wild guess!

    ARe you specifying no locking while doing your SELECT?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Posts
    419

    Re: Progress Database Problem

    I think I found out what was wrong. I changed adLockOptimistic to adLockReadOnly...and log files are deleted after I close the connection.
    Code:
    If LostAngel.Tag = "Programming" then
       LostAngel.Caption = "Awake"
    Else
       LostAngel.Caption = "Dreaming of Code"
    End If

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Progress Database Problem

    Quote Originally Posted by LostAngel
    I think I found out what was wrong. I changed adLockOptimistic to adLockReadOnly...and log files are deleted after I close the connection.
    Is resolved then?

    If so, please pull down the Thread Tools menu and click the Mark Thread Resolved button. That will let everyone know that you have your answer.

    Thank you.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Posts
    419

    Re: [RESOLVED] Progress Database Problem

    Done!
    Thanks!
    Code:
    If LostAngel.Tag = "Programming" then
       LostAngel.Caption = "Awake"
    Else
       LostAngel.Caption = "Dreaming of Code"
    End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width