Forum Replies Created

Viewing 15 posts - 9,421 through 9,435 (of 26,490 total)

  • RE: Any info on Deadlock detection algorithms?

    M_E_K (9/20/2012)


    Bit of a breakthrough on this I thought I'd share....

    There is an undocumented flag, -T1229 which turns off Lock Partitioning on SQL Servers with >= 16 CPU.

    Once I...

  • RE: help with a query

    erics44 (9/20/2012)


    Lynn Pettis (9/20/2012)


    erics44 (9/20/2012)


    Lynn Pettis (9/20/2012)


    erics44 (9/20/2012)


    ...

    Luis was able to help because at the time he had no opinion of me or the thread and wasnt letting his feelings...

  • RE: Help writing SQL Server development guide!

    Nils Gustav Stråbø (9/20/2012)


    Lynn Pettis (9/20/2012)


    Even the post above that basically says don't use scalar or multistatement tvf is not always correct.

    Well, I didn't say never to use it, I...

  • RE: help with a query

    erics44 (9/20/2012)


    Lynn Pettis (9/20/2012)


    erics44 (9/20/2012)


    ...

    Luis was able to help because at the time he had no opinion of me or the thread and wasnt letting his feelings stop him from...

  • RE: Static way to get last day of the month from the past quarter

    asm1212 (9/20/2012)


    Michael Valentine Jones (9/20/2012)


    This code will work for any date within a quarter to find the end of month for the three months in the prior querter.

    select

    CurrDateTime,

    PriorQtrMonth1 = dateadd(mm,(datediff(QQ,0,CurrDateTime)*3)-2,-1),

    PriorQtrMonth2...

  • RE: help with a query

    erics44 (9/20/2012)


    ...

    Luis was able to help because at the time he had no opinion of me or the thread and wasnt letting his feelings stop him from being objective

    I had...

  • RE: Intresting Question need answer ASAP

    vax09 (9/20/2012)


    One more

    SELECT CAST(634 AS VARCHAR(2))

    why it display * in result

    Overflow, you are trying to convert the number 634 to a string but only giving the string 2 characters of...

  • RE: Help writing SQL Server development guide!

    PiMané (9/20/2012)


    Lynn Pettis (9/20/2012)


    You are trying to make design decisions before any coding is actually done. The answer is "it depends." What should be done is to develop...

  • RE: help with a query

    erics44 (9/20/2012)


    Lynn Pettis (9/20/2012)


    erics44 (9/20/2012)


    Sean Lange (9/20/2012)


    erics44 (9/20/2012)


    Sean Lange (9/20/2012)


    erics44 (9/20/2012)


    Sean Lange (9/20/2012)


    erics44 (9/20/2012)


    well spotted pal, the two are linked

    completely different problem tho

    But same issue of lack of details. I...

  • RE: Max Recursion issue; Where does the OPTION(MAXRECURSION 250) go?

    Have you tried putting the option (maxrecursion 0) on the calling SQL?

  • RE: Help writing SQL Server development guide!

    You are trying to make design decisions before any coding is actually done. The answer is "it depends." What should be done is to develop several alternative solutions...

  • RE: help with a query

    erics44 (9/20/2012)


    Sean Lange (9/20/2012)


    erics44 (9/20/2012)


    Sean Lange (9/20/2012)


    erics44 (9/20/2012)


    Sean Lange (9/20/2012)


    erics44 (9/20/2012)


    well spotted pal, the two are linked

    completely different problem tho

    But same issue of lack of details. I guess Luis has...

  • RE: Max Recursion issue; Where does the OPTION(MAXRECURSION 250) go?

    Only other option I can think of is at the end of the calling query.

  • RE: Static way to get last day of the month from the past quarter

    Using the info from the url Sean provided and making some tweaks I would suggest something like this:

    declare @RunDate datetime = '2012-10-01';

    select

    dateadd(dd, -1, dateadd(mm, datediff(mm, 0,...

  • RE: Max Recursion issue; Where does the OPTION(MAXRECURSION 250) go?

    I would say it should look like this:

    ...

    SELECT Text_Id, TextData

    FROM FindReplaceCTE

    WHERE LookupIdx = (SELECT MAX(LookupIdx)

    ...

Viewing 15 posts - 9,421 through 9,435 (of 26,490 total)