Turn varbinary bit ON/OFF

  • ofer bester

    Valued Member

    Points: 57

    Comments posted to this topic are about the item Turn varbinary bit ON/OFF

  • jfogel

    Hall of Fame

    Points: 3986

    Um, give the function a parameter so it can do either on or off. Two functions for this is a no no.

    Cheers

  • Mike Dougherty-384281

    SSCrazy

    Points: 2764

    Use-case?

    Part of what makes SQLServerCentral articles interesting to read is the story that explains the code. What prompted you to write these functions?

    Even if this solution "works" - what problem does it solve?

    Why is this solution better than the approach *I* might have created?

    (I'd probably not think to write/employ the functions you've written)

    Summary: "more please" 🙂

  • bester.ofer

    SSC Rookie

    Points: 38

    I agree - the two functions can be merged easily.

    I intentionally did not mix the two to enable a clear understanding.

  • bester.ofer

    SSC Rookie

    Points: 38

    Sorry but i cant provide one.

    A friend requested that i'll send him the functions ASAP. after it was done i remembered i posted something similar a few years back so i loaded those two as well.

  • akljfhnlaflkj

    SSC Guru

    Points: 76202

    Thanks for the script.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply