Suvendu's profileSuvendu's spacePhotosBlogListsMore Tools Help

Blog


    June 08

    Update Trigger

    Lets assume if you want to check whether any of the columns 2,3,4 or all the columns have been updated or not. Then use the following IF condition

    IF (COLUMNS_UPDATED() & 14) > 0

    14 is the bitmask for all three columns.

    for col 2, (this is col id you can see in syscolumns table) bitmask is power(2,(2-1))=2

    for col 3, bitmask is power(2,(3-1))=4

    for col 4, bitmask is power(2,(4-1))=8

    In above ex, since your checking all there columns bitmask is the sum of all. That comes to 14.

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://suvendupatra.spaces.live.com/blog/cns!3E5852F98B6FF!181.trak
    Weblogs that reference this entry
    • None