Prevent compilation

  • Usually, when you want to avoid compilation of a command or 1-2 lines, you add the double line '--' to your code, making it a fake 'comment'.

    How can you prevent compilation of, say, 100 lines or more without using the comment/double line -- technique? Is there a specific character for that?

    Thanks in advance, alvaro

  • a_ud (11/24/2010)


    Usually, when you want to avoid compilation of a command or 1-2 lines, you add the double line '--' to your code, making it a fake 'comment'.

    How can you prevent compilation of, say, 100 lines or more without using the comment/double line -- technique? Is there a specific character for that?

    Thanks in advance, alvaro

    you enclose that part of code within /*......*/

    /*

    line1

    line2

    line3

    ...

    ...

    */



    Pradeep Singh

  • You can see an example on this website

    http://www.mssqltips.com/tip.asp?tip=1213

Viewing 3 posts - 1 through 2 (of 2 total)

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