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. problem populating a combo box

problem populating a combo box

Scheduled Pinned Locked Moved Database
databasevisual-studiohelpcsharpquestion
3 Posts 3 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.
  • J Offline
    J Offline
    Jondo24shoots
    wrote on last edited by
    #1

    i am developing a windows application with VS 2005 a i need to populate a combo box with the column value from my table in the database i'm using a stored procedure and anytime i try de code in visual studio i do have a violation of primary key constraints error but when i execute the stored procedure in my query analyzer, it returns the real values please can someone tell why this is happening?? Jondo

    H S 2 Replies Last reply
    0
    • J Jondo24shoots

      i am developing a windows application with VS 2005 a i need to populate a combo box with the column value from my table in the database i'm using a stored procedure and anytime i try de code in visual studio i do have a violation of primary key constraints error but when i execute the stored procedure in my query analyzer, it returns the real values please can someone tell why this is happening?? Jondo

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Jondo24shoots wrote:

      please can someone tell why this is happening??

      Very unlikely without seeing at least part of the code that populates the combo box.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      1 Reply Last reply
      0
      • J Jondo24shoots

        i am developing a windows application with VS 2005 a i need to populate a combo box with the column value from my table in the database i'm using a stored procedure and anytime i try de code in visual studio i do have a violation of primary key constraints error but when i execute the stored procedure in my query analyzer, it returns the real values please can someone tell why this is happening?? Jondo

        S Offline
        S Offline
        saanj
        wrote on last edited by
        #3

        Hi, Are you using any insert, update and delete statement? Otherwise, it should not show primary key violation error for a select statement. Please post the code as Henry rightly said. Regards Saanj

        Either you love IT or leave IT...

        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