Forum Replies Created

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

  • RE: Case statement in where clause

    Thanx.

    The return 0 or 1 approach will work, though it's still not a perfect solution, but I will prefer it than Union All. 🙂

    By the way, there's another 2 things...

  • RE: Case statement in where clause

    I thought of Union All before. But I am not sure whether it supports Cursor, actually I am using this select statement as a cursor to walk though records, and...

  • RE: Case statement in where clause

    Thanks, Greg,

    Again, I don't like the work around you provided. sorry. 🙂

    Actually I was using the first approach you...

  • RE: Case statement in where clause

    Yes, The proposal will work but I don't like the code, it looks like cumbersome.

    Especially, my condition is much more complex than this, which will make my code ugly...

  • RE: Case statement in where clause

    Yes, The proposal will work but I don't like the code, it looks like cumbersome.

    Especially, my condition is much more complex than this, which will make my code ugly...

  • RE: Populate a Table Variable Dynamic SQL results?

    I hate Temporary table, because it caused a lot of problems, besides performance problems.

    Maybe I should avoid Dynamic SQL. But sometimes, it's a pain without using a Dynmic SQL, especially...

  • RE: Populate a Table Variable Dynamic SQL results?

    Yes, you are right, the proposed solution won't enable you to access the @table.

    Looks like I still have to use Temporary table in order to access the result of a...

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