Forum Replies Created

Viewing 15 posts - 331 through 345 (of 851 total)

  • RE: To get the date according to my parameter value

    [font="Verdana"]I'm still not very clear on what you are trying to do.

    Have you looked at dateadd(), datediff() and convert() in SQL Server Books Online?

    [/font]

  • RE: Performance issue with tally solution

    Jeff Moden (4/13/2009)


    Thanks, Bruce... and sorry I took it the wrong way.

    [font="Verdana"]No problem.

    I think it's yet another example of using the right tool for the job. It's just that...

  • RE: Performance issue with tally solution

    Jeff Moden (4/13/2009)


    Heh... and the stone throwing from the band wagon begins. 😉 Don't forget, I was the one that first said that Flo's beat the Tally table, so...

  • RE: columns order based upon their total

    mnicholas (4/13/2009)


    I guess how in MS Reporting Services do I order the columns from highest Total to lowest?

    [font="Verdana"]Heh. Do it in SQL Server? 😛

    Seriously, I'd be hard pressed...

  • RE: Performance issue with tally solution

    RBarryYoung (4/13/2009)


    Note that the line counts are different simply because the TVF omits empty results:

    string[] items = toSplit.Split(new string[] { delimeter }, StringSplitOptions.RemoveEmptyEntries);)

    It would be really nice if we could...

  • RE: columns order based upon their total

    [font="Verdana"]I think the problem is that you want to order the columns not the rows.

    Hmmm.

    The only way I can think of off-hand is to unpivot, order, then pivot back up.

    [/font]

  • RE: trying to figure out an update

    Florian Reischl (4/13/2009)


    I thought about the CTE while typing the sub-query. I just determined that, in this case, the sub-query is simple enough that it stays readable.

    Greets

    Flo

    [font="Verdana"]Agreed in this case...

  • RE: Performance issue with tally solution

    [font="Verdana"]I remember doing a bunch of performance testing a couple of years ago when we were converting code from SQL Server 6.5 to SQL Server 7. We found then...

  • RE: trying to figure out an update

    [font="Verdana"]Also okay in SQL Server 2005 to use a CTE (common table expression), which I find makes the resulting code a little more readable, but is otherwise pretty much the...

  • RE: Performance issue with tally solution

    [font="Verdana"]Flo, I'll add my kudos as well: it's good to see some numbers showing how CLR rates in comparison with T-SQL. And I'll look forward to the article. ...

  • RE: sp_dates add this proc to your code collection

    [font="Verdana"]I still tend to use a Calendar table, rather than a function, for bulk date conversions. Obviously that doesn't work so well when you have a time component![/font]

  • RE: Falling Over our Assumptions

    andrew gothard (4/8/2009)


    I'm not really much of a fan of temp tables. Probably, in all honesty, as a pavlovian reaction to some of the deranged drivel I've seen inflicted...

  • RE: Falling Over our Assumptions

    [font="Verdana"]

    A good article.

    I've been using that trick of breaking large operations down into smaller ones since, oh, SQL Server 6.5 days?

    Compared with re-assembling the small steps into the one or...

  • RE: T-Sql rant

    [font="Verdana"]Hmmm.

    This is like saying "I only know about two colours: blue and green. Now this thing called "red" comes along... is it blue or green?

    A table is, believe...

  • RE: T-Sql rant

    Jeff Moden (4/6/2009)


    I've never understood why they can't just use "=" instead of ":=", why they need ";" to identify the end of a "thought" that the compiler should easily...

Viewing 15 posts - 331 through 345 (of 851 total)