Forum Replies Created

Viewing 15 posts - 121 through 135 (of 1,553 total)

  • RE: Formatting the date

    Matt Miller (10/26/2007)


    Results:

    raw sort 52956

    convert sort 89013

    and now with an index

    raw sort ...

  • RE: Formatting the date

    Oh really?

    Then I assume that what was 'desired' was something else than what was written?

    You're actually saying that the below example is 'incorrect', or 'undesired', or simply plain 'wrong'..?

    [font="Courier New"]declare...

  • RE: Formatting the date

    Because semantics *is* important, and this is a good example of why.

    SQL is language where we construct questions, and as you ask, thou shalt be answered.

    So, here we ask for...

  • RE: Formatting the date

    Jeff Moden (10/26/2007)


    Greg Snidow (10/26/2007)


    Well, I can't replicate it, but I know I had an issue with it before. Maybe I'm just crazy.

    No, not crazy... both of the following...

  • RE: Formatting the date

    Matt, do you have any example that shows such abysmal difference?

    Tried a little, and sure, there is a piece of overhead between

    ORDER BY datecolumn

    and

    ORDER BY CONVERT(CHAR(8), datecolumn, 112)

    for example..

    But far...

  • RE: Formatting the date

    Nah, probably just cuz it's Friday 😀

  • RE: Sequential Update

    It's probably because the WITH INDEX trick doesn't really work.

    Before anyone blows a fuse, by 'not really work' I mean 'not supported', 'isn't reliable', 'cannot be guranteed 100% to always...

  • RE: Formatting the date

    You can still order by that as well..

    Or are you talking about something else, Greg?

    J M - the place in BOL you're looking for is under 'CONVERT'

    There you'll find...

  • RE: What would I do t0 become a DBA?

    Well, first of all you need to have a genuine interest in 'dba:ing' (whatever that is) 😉

    As with everything else, you want to learn as much as possible about how...

  • RE: Adding workdays

    Sergiy (10/25/2007)


    Are you sure Tom Carr is an author?

    Would you mind to look couple of pages back?

    It's just almost exact copy of my script. "+6" is replaced with "-1" -...

  • RE: how to remove numbers from strings?

    Have to revise my previous ramblings on insert order and identity above, apologies for that.

    (though it's somewhat a sidetrack it deserves to be correct)

    Contrary to what I wrote before, if...

  • RE: System Views for finding out what logs are applied?

    Then you need to upgrade your current version.

    -- quote BOL --

    Requirements

    Log shipping has the following requirements:

    SQL Server 2005 Standard Edition, SQL Server 2005 Workgroup Edition, or SQL Server 2005 Enterprise...

  • RE: how to remove numbers from strings?

    Ah, just small details that tends to get lost in the overall excitement...

    Like first, when performance was measured by just execting something and as I assumed, also returning the results....

  • RE: Bcp Problem

    Dunno why it didn't work..

    Though I agree that the output (with 'password' promt) looks suspicious.

    Couldn't replicate it. Worked both on 2k and 2.5k, no problems at all.

    The one difference perhaps,...

  • RE: Adding workdays

    Matt Miller (10/23/2007)

    Funny - I thought you said there was exactly ONE way.....what about

    datediff(dd,0,@dte)%7+1

    Seems to work for me?

    Oh yes, using DATEDIFF that way will work, as long as:

    the 2nd parameter's...

Viewing 15 posts - 121 through 135 (of 1,553 total)