Update a column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • OuTCasT
    Contributor
    • Jan 2008
    • 374

    Update a column

    Hi

    Is it possible to update a columns data in a row to another columns data when that row is inserted ?
    For example i have a incremented column and i want to set the Job ID column equal to the incremented column when the row is inserted.

    so each row will have the incremented value and the same value of that column in the jobid column of the same row.

    Thanks
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32668

    #2
    I imagine that would depend on how you are inserting the data. It's hard to help with questions when only half the necessary information is available.

    Comment

    • ck9663
      Recognized Expert Specialist
      • Jun 2007
      • 2878

      #3
      If JobID should always be related to the incremented column, just use a COMPUTED COLUMN instead.

      Good Luck!!!

      ~~ CK

      Comment

      Working...