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. about primary key

about primary key

Scheduled Pinned Locked Moved ASP.NET
questiondatabaseannouncement
2 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
    prabhu dot net
    wrote on last edited by
    #1

    whenever we establish connection to database through "coding" we have to generate set of the objects properties for "update","delete"and "insert" commands.But before that we have to initialize and set the primary key.my question is why we set the primary key by coding? because primary key is set while creating a database itself.so what is the need of set again?

    coding makes me interesting in dot net

    K 1 Reply Last reply
    0
    • P prabhu dot net

      whenever we establish connection to database through "coding" we have to generate set of the objects properties for "update","delete"and "insert" commands.But before that we have to initialize and set the primary key.my question is why we set the primary key by coding? because primary key is set while creating a database itself.so what is the need of set again?

      coding makes me interesting in dot net

      K Offline
      K Offline
      kiran kumar Intelligroup
      wrote on last edited by
      #2

      i think here you are setting primary key for dataset tables bcz this tables will be updated as it is into database so we need same structure

      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