Forum Replies Created

Viewing 15 posts - 436 through 450 (of 608 total)

  • RE: Adding comma separator to INT datatype

    Bill Talada (1/31/2013)


    If I purchase an application, I can use it any way I want to. I used to be an academic purist back when I first started in...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: CHOOSE - 1

    Ron, you must have overlooked something this time.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: where fldValue=123 vs join to table with one row

    Can you please supply DDL for tblConsul and #tmpPlan, including all indexes.

    While you are there, can you supply the view definition.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: where fldValue=123 vs join to table with one row

    souLTower (1/25/2013)


    I've run this test previously with similar results. I've attached the execution plan. I removed some columns so that we're just dealing with the view in question.

    Thanks!...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: where fldValue=123 vs join to table with one row

    Can you tell me how the following two queries compare please.

    PLEASE NOTE: You have not aliased all your columns so I have no idea which tables they come from. You...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: where fldValue=123 vs join to table with one row

    My impression is that your query is too complicated and the query optimizer has no chance of compiling the most efficient plan. You can see this in the execution plan...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Problem with a min/max date query

    If your desired output above is 2013-01-24 then my first solution is correct.

    If your desired output above is 2013-02-15 then the following will work.

    SELECT

    TOP 1 *

    FROM

    #mydates

    ORDER BY

    CASE

    WHEN mydate >...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Problem with a min/max date query

    Just to add, I simplified your requirements.

    To put it in words, if greatest mydate is less then current date, select most recent mydate. Otherwise if mydate is greater or equal...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Problem with a min/max date query

    SELECTTOP 1 *

    FROM#mydates

    ORDER BY ABS(DATEDIFF(SECOND, GETDATE(), mydate))

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Procedure is taking 15 seconds after service restart but from second time procedure takes 1 sec

    GilaMonster (1/24/2013)


    Very likely has nothing whatsoever to do with the execution plan. 15 seconds is far longer than SQL takes to compile anything other than a ridiculously complex query.

    Restarting cleared...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Relational Model versus XML

    sipas (1/25/2013)Personally I don't give two hoots if I get the answer right or not - as long as I learn something useful.

    I agree with that sentiment, however I learned...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Question of the day

    call.copse (1/25/2013)


    Sean Pearce (1/25/2013)


    Stuart Davies (1/25/2013)


    Can't see there'll be much debate about this one!

    I vehemently disagree.

    How can you possibly say that? :angry:

    Just my Friday attempt at some humour.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Change service logon account

    Hi,

    I read the article you referred to at http://www.sqldbadiaries.com/2010/12/13/change-service-account-password-the-specified-network-password-is-not-correct/.

    Can you confirm you selected "Entire Directory" for the location field as mentioned at the bottom of the article.

    The From this location...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: where fldValue=123 vs join to table with one row

    I have downloaded the plans and they are exactly the same. I downloaded them twice in case of PEBKAC issues.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: How To Validate in Procedure

    What datatype are you using for DCPI_Date in Reliance_Master and Ram_Reliance_Master?

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

Viewing 15 posts - 436 through 450 (of 608 total)