Forum Replies Created

Viewing 15 posts - 1 through 15 (of 29 total)

  • RE: How do i use "orelse" in sql server, "orelse" similar to VB.net

    Eugene Elutin (8/12/2010)


    Mike Nuessler (8/12/2010)


    Nothing fancy there it evaluates the conditions in order.

    So the first condition (a=0) of the OR is evaluated and it will not look at...


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: How do i use "orelse" in sql server, "orelse" similar to VB.net

    Nothing fancy there it evaluates the conditions in order.

    So the first condition (a=0) of the OR is evaluated and it will not look at second condition (b=0) unless...


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: SQL 2008 Licensing & Pricing

    anthony.green (11/25/2008)


    The version will have to be enterprise due to the amount of RAM that is being installed into each machine.

    Ant

    We're looking at upgrading from 2K to 2K8 as well...


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: Install SQL Server 2000 and Visual Studio .Net 2003 on same server

    Ok, now that you're taking opinions..

    My opinion would be not to do it. Whether it's a production or development SQL2K DB server all you want running on that machine...


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: Set-Based Solution Possible?

    I think Peter has proven his case here..

    Thank you to everyone for suggestions; in the long run every one is valuable to improve my SQL skills.

    Cheers, Mike


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: Set-Based Solution Possible?

    Sergiy (1/31/2008)


    Mike Nuessler (1/31/2008)I see the table spool as well.

    Did you copy HASH JOIN?

    I just tried it again. Copied straight from your post, pasted into QA, and ran...


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: Set-Based Solution Possible?

    Peter Larsson (1/31/2008)


    When you tested, did you notice a significant difference between them?

    I just created a stored procedure for Peter's method and executed the two of them.

    Sergiy's proc...


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: Set-Based Solution Possible?

    It appears I may need to modify my production code *sigh* thanks to Peter...

    After modifying his original post for SQL2000 method to sort properly it works great!

    Here's the modification:

    [font="Courier New"]Declare...


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: Set-Based Solution Possible?

    Interesting.

    I am going to modify your suggestion as required for my needs and run it on production data against my modified Sergiy method and see what happens.

    Null fields...


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: Set-Based Solution Possible?

    Whoops...Sorry, forgot to index my test data :blush:


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: Set-Based Solution Possible?

    Yet another method. Thanks Peter.

    The output results aren't exactly what I need (but I think you're editing the post as I type this because I've tried 2 different query...


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: Set-Based Solution Possible?

    Ok, Sergiy wins. Lightning fast and easily maintainable if required.

    I had to look at that function line a few times ... SET @Count = ReviewNo = CASE ... to...


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: Set-Based Solution Possible?

    Another interesting approach. Thank you. The data doesn't result in the format I need with this method however. It creates a nice comma-delimited dates per year instead....


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: Set-Based Solution Possible?

    Thank you - I thought there had to be a way but couldn't quite get there and wasn't given the time to work it out.

    Checking the execution plan I see...


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

  • RE: VB Script syntax error in DTS...

    I think it's complaining about the line continuation character actually.

    try

    q = DTSLookups("FiltroStoricoIdLotto_Lookup").Execute(DTSSource("Id"), DTSSource("Lotto"))

    instead of

    q = DTSLookups("FiltroStoricoIdLotto_Lookup")._

    Execute(DTSSource("Id"), DTSSource("Lotto"))


    In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.   Douglas Adams (1952-2001)

Viewing 15 posts - 1 through 15 (of 29 total)