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. SQL connection problem

SQL connection problem

Scheduled Pinned Locked Moved Database
databasehelpquestion
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.
  • P Offline
    P Offline
    pushpi
    wrote on last edited by
    #1

    i need to insert huge database in sql table the problem 1) i need to know any method/process by which u may guess the connection has break 2) if connection is brek i need to roll back all the inserts any idea ? :wtf: P.S. PATWAL

    K 1 Reply Last reply
    0
    • P pushpi

      i need to insert huge database in sql table the problem 1) i need to know any method/process by which u may guess the connection has break 2) if connection is brek i need to roll back all the inserts any idea ? :wtf: P.S. PATWAL

      K Offline
      K Offline
      karl_w
      wrote on last edited by
      #2

      First of all, you didn't mention how you contact your database and what db you use (or do you mean MS SQL-Server by "sql table"?) 1) Can't say any particular without knowing how you contact database. But you could check the return value of your data-access-method. There should be an error code for lost connection. 2) If you don't use autocommit, it should be the database's job not to store any data that's not commited. -- karl

      P 1 Reply Last reply
      0
      • K karl_w

        First of all, you didn't mention how you contact your database and what db you use (or do you mean MS SQL-Server by "sql table"?) 1) Can't say any particular without knowing how you contact database. But you could check the return value of your data-access-method. There should be an error code for lost connection. 2) If you don't use autocommit, it should be the database's job not to store any data that's not commited. -- karl

        P Offline
        P Offline
        pushpi
        wrote on last edited by
        #3

        hi thanks for paying attention to my query i got solution for my problem i just needed to use transation for updates :rolleyes: thanks again ! P.S. PATWAL

        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