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. General Programming
  3. Visual Basic
  4. Constraints on Database

Constraints on Database

Scheduled Pinned Locked Moved Visual Basic
databasehelpcomtoolsquestion
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.
  • T Offline
    T Offline
    The ANZAC
    wrote on last edited by
    #1

    I am relatively new to database concepts, so please forgive any incorrect terminology. I have created a custom query that gets a users data based on the user name they have entered, when i put this line in code: Me.UsersTableAdapter1.FillByUserName(PasswordManagerDataSet1.Users, UNTextBox.Text) I get an error to do with constraints, but i don't understand why. Also i get a concurrency violation error when i try to update a record after filling a table using a custom query. Fill: Me.PasswordTableAdapter.FillPasswords(Me.PasswordManagerDataSet1.Password, User) I also get a constraints issue here. I am trying to update using the automatic stuff VS2005 adds (i.e. the save button in the navigation bar it adds). This is the save code: Me.Validate() Me.PasswordBindingSource.EndEdit() Me.PasswordTableAdapter.Update(Me.PasswordManagerDataSet1.Password)

    Please check out my articles: The ANZAC's articles

    P 1 Reply Last reply
    0
    • T The ANZAC

      I am relatively new to database concepts, so please forgive any incorrect terminology. I have created a custom query that gets a users data based on the user name they have entered, when i put this line in code: Me.UsersTableAdapter1.FillByUserName(PasswordManagerDataSet1.Users, UNTextBox.Text) I get an error to do with constraints, but i don't understand why. Also i get a concurrency violation error when i try to update a record after filling a table using a custom query. Fill: Me.PasswordTableAdapter.FillPasswords(Me.PasswordManagerDataSet1.Password, User) I also get a constraints issue here. I am trying to update using the automatic stuff VS2005 adds (i.e. the save button in the navigation bar it adds). This is the save code: Me.Validate() Me.PasswordBindingSource.EndEdit() Me.PasswordTableAdapter.Update(Me.PasswordManagerDataSet1.Password)

      Please check out my articles: The ANZAC's articles

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      The ANZAC wrote:

      Me.UsersTableAdapter1.FillByUserName(PasswordManagerDataSet1.Users, UNTextBox.Text) I get an error to do with constraints, but i don't understand why.

      What are the constraints in the database?

      "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      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