Forum Replies Created

Viewing 15 posts - 91 through 105 (of 8,414 total)

  • RE: All Possible Combinations Loop

    akberali67 (2/18/2013)


    Paul, that worked! I dont know how. I am too new to SQL to understand but when I store the data in a table and then run the query...

  • RE: All Possible Combinations Loop

    ChrisM@Work (2/11/2013)


    I don't know if this error (Error 8623) is dependant upon system resources, in which case you might get lucky using a server with more resources, or if it's...

  • RE: Get distinct values into single column

    SQLFiddle (link) showing the following solution:

    DECLARE @data AS TABLE

    (

    StoreName varchar(50) NOT NULL,

    Category varchar(50) NOT NULL,

    ...

  • RE: Halloween Protection

    Steve Jones - SSC Editor (11/9/2012)


    I'll change the question. Happy to add inserts if I have a reference. Perhaps a certain, very smart, well known, New Zealand Kiwi will blog...

  • RE: Are the posted questions getting worse?

    Lowell (2/15/2013)


    If i have to hit shift_alt+0831 or something every time i need a quote-type indicator, instead of a single key stroke, that'd get old real fast.

    This made me smile....

  • RE: Puzzle / CTE Help - NO CURORS :)

    The C# code could no doubt be improved - I'm not an expert in that language by any means, but it does bear a resemblance to the sort of code...

  • RE: Puzzle / CTE Help - NO CURORS :)

    mister.magoo (2/14/2013)


    Are you able to share that code, because I would love to learn from it?

    Here you go:

    USE Sandpit;

    GO

    /***********************

    ** Tables and indexes

    ************************/

    CREATE TABLE [dbo].[tblRequests] (

    [RequestID] ...

  • RE: Puzzle / CTE Help - NO CURORS :)

    mister.magoo (2/13/2013)


    this version packs 70,000 requests in about 13 seconds on my desktop.

    Debug version SQLCLR procedure (without bulk copy) loading the destination table: 1.4s on the same data set.

    Time to...

  • RE: Are the posted questions getting worse?

    GilaMonster (2/13/2013)


    Personally I find LMGTFY to be incredibly condescending, I'd feel quite insulted if someone gave me that kind of reply. I'll do the search for people if I don't...

  • RE: Tally OH! An Improved SQL 8K “CSV Splitter” Function

    dwain.c (2/12/2013)


    Sorry for the basic question but, can you show me where exactly in the execution plan you're seeing this?

    Taking the following code as an example (which ran for 5m...

  • RE: Tally OH! An Improved SQL 8K “CSV Splitter” Function

    dwain.c (2/11/2013)


    I found that applying a built-in function to the string to be split in the DelimitedSplit8K function's call has adverse performance effects.

    If you look closely at the execution plans,...

  • RE: Puzzle / CTE Help - NO CURORS :)

    Hi Colin,

    It's quite easy to go mad trying to do this sort of thing in T-SQL today (future things like ordered aggregates might help, I don't know).

    A cursor solution is...

  • RE: Update a table based upon CTE data

    MyDoggieJessie (2/10/2013)


    Paul, I will try the code and post back the results soon. As for obvious issues with the linked server (remote query) this will go away. All...

  • RE: UNION vs OR --> NP-Complete Problem

    karthik M (2/5/2013)


    The conclusion is to use 'OR' instead UNION. Right?

    No.

    Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query...

  • RE: Maximum Concurrent Users in a day

    Jeff Moden (2/9/2013)


    Freakin' awesome link, Paul. I was able to modify Barry's code to also correctly populate the MX column for the Logoffs so that I could graph the...

Viewing 15 posts - 91 through 105 (of 8,414 total)