Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Pervasive SQL 8.0

Pervasive SQL 8.0

Scheduled Pinned Locked Moved Database
csharpdatabasehelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Soleil couchant
    wrote on last edited by
    #1

    Hi there, anyone using Pervasive SQL 8.0?? I have an issue with transactions using C# on Pervasive SQL 8.0. The transaction does not wait when there is a lock (another transaction operating) on the table. It just throws an exception. Thanks for helping

    S 1 Reply Last reply
    0
    • S Soleil couchant

      Hi there, anyone using Pervasive SQL 8.0?? I have an issue with transactions using C# on Pervasive SQL 8.0. The transaction does not wait when there is a lock (another transaction operating) on the table. It just throws an exception. Thanks for helping

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      What Exception it throws?

      Regards, Satips.:rose:

      S 1 Reply Last reply
      0
      • S Sathesh Sakthivel

        What Exception it throws?

        Regards, Satips.:rose:

        S Offline
        S Offline
        Soleil couchant
        wrote on last edited by
        #3

        A btrieve error 85 is thrown, which means the file is locked. Right now, my solution to this problem conbsists of looping through a try-catch block and keep trying until the file is unlocked. I was just wondering whether there is a more elegant solution to that.. bool bSuccess = false; int nCount = 0; while (!bSuccess && nCount < 30) { try { da.Update(dsControl, "Control"); // this throws the exception if // there is a lock on Control bSuccess = true; } catch (Exception ex) { nCount++; } } I suspect something wrong with Pervasive SQL 8.0.. :$

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups