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. Web Development
  3. ASP.NET
  4. Database Problem....

Database Problem....

Scheduled Pinned Locked Moved ASP.NET
databasehelp
6 Posts 4 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.
  • A Offline
    A Offline
    Ajai Chaudhary
    wrote on last edited by
    #1

    Hi all I was creating a Web form, by which the data will stored into a ms-access database table. In my database table there is a field ID which is autonumber but my id is not generated properly while working with the database, currently the values for ids are: - 1,2,3,6,7,13,15,16,30,34,35…. Means the ids are not generated into correct manner, What should I do for that. Plz reply , Thanks in advance.

    M P S 3 Replies Last reply
    0
    • A Ajai Chaudhary

      Hi all I was creating a Web form, by which the data will stored into a ms-access database table. In my database table there is a field ID which is autonumber but my id is not generated properly while working with the database, currently the values for ids are: - 1,2,3,6,7,13,15,16,30,34,35…. Means the ids are not generated into correct manner, What should I do for that. Plz reply , Thanks in advance.

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      Dont repost your query. :mad: It has already been answered

      A 1 Reply Last reply
      0
      • M Manas Bhardwaj

        Dont repost your query. :mad: It has already been answered

        A Offline
        A Offline
        Ajai Chaudhary
        wrote on last edited by
        #3

        Sorry for reposting the problem, but there is no delete operation will performe there i checked it for the same even there delete keyword available in my web form so how could it will be deleted.

        1 Reply Last reply
        0
        • A Ajai Chaudhary

          Hi all I was creating a Web form, by which the data will stored into a ms-access database table. In my database table there is a field ID which is autonumber but my id is not generated properly while working with the database, currently the values for ids are: - 1,2,3,6,7,13,15,16,30,34,35…. Means the ids are not generated into correct manner, What should I do for that. Plz reply , Thanks in advance.

          P Offline
          P Offline
          PrakashBhaskar
          wrote on last edited by
          #4

          this occur may be you deleted some records for example you 10 rows that has auto generated column you have deleted the i & 10 th record and if you insert the new row the autogenerated column will take 11 as the new record coz of built-in storedprocedure will do this. you have to drop and recreate you table to solve this problem

          Thanks Warm Regards Prakash-B

          A 1 Reply Last reply
          0
          • P PrakashBhaskar

            this occur may be you deleted some records for example you 10 rows that has auto generated column you have deleted the i & 10 th record and if you insert the new row the autogenerated column will take 11 as the new record coz of built-in storedprocedure will do this. you have to drop and recreate you table to solve this problem

            Thanks Warm Regards Prakash-B

            A Offline
            A Offline
            Ajai Chaudhary
            wrote on last edited by
            #5

            but there is no delete operation will performe there i checked it for the same even there delete keyword available in my web form so how could it will be deleted.

            1 Reply Last reply
            0
            • A Ajai Chaudhary

              Hi all I was creating a Web form, by which the data will stored into a ms-access database table. In my database table there is a field ID which is autonumber but my id is not generated properly while working with the database, currently the values for ids are: - 1,2,3,6,7,13,15,16,30,34,35…. Means the ids are not generated into correct manner, What should I do for that. Plz reply , Thanks in advance.

              S Offline
              S Offline
              SHatchard
              wrote on last edited by
              #6

              Are you using transactions anywhere, if you are then that might explain it since running a command in a transaction which is then rolled-back will result in gaps in identities

              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