• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Collapse

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "SQL Update identifier"

Collapse

  • AtW
    replied
    Originally posted by DimPrawn View Post
    You just create a column of type rowversion

    http://msdn.microsoft.com/en-us/library/ms182776.aspx

    Its value changes everytime the row is updated.
    That's a better technical advice than mine Dimmy... the first one I heard from you!

    P.S. In my defence I felt really to suggest using Trigger in database...

    Leave a comment:


  • ASB
    replied
    Originally posted by DimPrawn View Post
    You just create a column of type rowversion

    http://msdn.microsoft.com/en-us/library/ms182776.aspx

    Its value changes everytime the row is updated.
    Great, thanks !!

    Leave a comment:


  • DimPrawn
    replied
    You just create a column of type rowversion

    http://msdn.microsoft.com/en-us/library/ms182776.aspx

    Its value changes everytime the row is updated.

    Leave a comment:


  • ASB
    replied
    Originally posted by AtW View Post
    Try using trigger on update: http://msdn.microsoft.com/en-us/libr...4(SQL.80).aspx

    This can be performance bottleneck if you update a lot.
    AtW,

    That is in fact what I am doing, but it just "feels" as though there ought to be a more automatic way. ISTR this was possible with oracle.

    Leave a comment:


  • AtW
    replied
    Try using trigger on update: http://msdn.microsoft.com/en-us/libr...4(SQL.80).aspx

    This can be performance bottleneck if you update a lot.

    Leave a comment:


  • ASB
    started a topic SQL Update identifier

    SQL Update identifier

    I need to include a record version number in an SQL server express (2008) database. Currently this is done manually, but it seems I ought to be able to do something like this automatically. All it is is a field that should change whenever an update is done.

    Have tried a variety of searches to no great avail, any suggestions ?

    Cheers.
Working...
X