Forum Replies Created

Viewing 15 posts - 1,876 through 1,890 (of 1,957 total)

  • RE: FizzBuzz

    Lynn Pettis (3/11/2010)


    It could be me, but the execution plan for the UNPIVOT solution still looks a lot like the execution plan of the CROSS JOIN/multiple UNION ALL solution. ...

  • RE: FizzBuzz

    Thanks steve, and as for themes, you mention queries looking like skyscrapers.....

    Attached is my execution plan - looks amazing like a chef's knife - perfect for slicing through the data....:-P

  • RE: FizzBuzz

    mister.magoo (3/8/2010)


    I have given in to curiosity and set off THE TRILLION - should be done in a few days I guess?

    CPU time = 228886430 ms, elapsed time...

  • RE: How to reference Parameters! collection in a text query

    Isn't it just

    exec sp_blah 'hardcodedvalue', 'hardcodedvalue', @ClientID

    ?

  • RE: Trigger Security with Linked Server

    sharon.bender (3/9/2010)


    Hi, I'm posting this for a colleague who is struggling with a trigger that won't fire off an insert statement.

    ...

    However, later in the trigger, Server A sends an Insert...

  • RE: FizzBuzz

    I have given in to curiosity and set off THE TRILLION - should be done in a few days I guess?

  • RE: FizzBuzz

    @steve-2 - congrats - I think you have the record - I can't think anyone else will even attempt THE TRILLION after seeing it takes that long!

  • RE: How do I delete duplicates in a COUNT result?

    Without test data to work on this is difficult, but I think you are after something like this:

    ;WITH

    FieldNames AS

    ( -- this is your list of dupes

    SELECT FieldName FROM...

  • RE: How do I delete duplicates in a COUNT result?

    It all depends on how you decide which ones to keep...if you can write a query to select the IDs you want to keep then it is easy to use...

  • RE: Begin and End with Case?

    @BaldingLoopMan : That is exactly the same as this...

    SELECT TOP 20

    NAME,

    object_id,

    ( SELECT COUNT(*) FROM sys.columns C where C.object_id=T.object_id )...

  • RE: How do I delete duplicates in a COUNT result?

    There is no straightforward answer as we cannot possibly know which ones you want to keep...

    You can get the list of them , so you can use that to get...

  • RE: Create view issue

    balbirsinghsodhi (3/3/2010)


    I having issue using script which create views in the batch. I am generating a views from the database based on all the tables and store those views on...

  • RE: FizzBuzz

    steve-893342 (3/3/2010)


    Yes Mister Magoo that really is a very elegant solution indeed.

    I've had a look at comparing against my query and it sure is a close one to call.

    Re the...

  • RE: FizzBuzz

    steve-893342 (3/2/2010)


    Too late now!

    I experimented with those union queries but couldn't find the right one, probably having too many unions or too few. Did you arrive at 32...

  • RE: FizzBuzz

    @jason - thanks.

    @steve-2 - yes - just about to try it, but I am not sure if my laptop will have enough memory - have you...

Viewing 15 posts - 1,876 through 1,890 (of 1,957 total)