Forum Replies Created

Viewing 15 posts - 4,681 through 4,695 (of 5,678 total)

  • RE: How to run 2 queries every month

    You'd do something like this:

    updatec

    setchkdesc=right('0'+rtrim(convert(char,datepart(mm,trandate))),2) + right('0'+rtrim(convert(char,datepart(dd,trandate))),2) + right('0'+rtrim(convert(char,datepart(yyyy,trandate))),2)

    FROM

    cmledge AS c

    JOIN

    <periodTable> AS pt

    ONc.period = pt.period

    wherechkdesc ='0000000'

    Note there's some psuedocode in there so you'll have to edit it a bit...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Using Join() for fields of a table ?

    You can do it with a for xml structure.

    Check out this article:

    http://www.sqlservercentral.com/articles/FOR+XML+PATH/70203/


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: How to Calculate Total Monthly time worked

    Any chance you can post the sample data and DDL like in the first link of my sig? Will make life much easier.


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Group Islands of Contiguous Dates (SQL Spackle)

    venoym (12/8/2010)


    Great post Jeff!

    I had a thought... this could be extended to account for Times in addition to dates... just move the calculation to the lowest significant field (from day...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: tally table help

    Question is a duplicate, please direct all commentary and responses to the following post:

    http://www.sqlservercentral.com/Forums/Topic1031483-392-1.aspx


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Are the posted questions getting worse?

    LutzM (12/7/2010)


    Craig Farrell (12/7/2010)


    ...

    One of the nice side effects of constantly being a joker is you can get away with a few comments others would be slammed for.

    Nope, I...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Select Top 1000 Suggestion

    michael.horn (12/7/2010)


    That gives me the last rows that either have no date in them or dates someone entered in 1900. The data and dates are entered by a machine...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Are the posted questions getting worse?

    GilaMonster (12/7/2010)


    Just be aware that fox is another of those 'interesting' people we have around here. Check posting history.

    No worries. I have my humor bat handy. One of...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Alter View from Trigger Hangs

    doug.milostic (12/7/2010)


    There is no "GO" in my code, so must be something else. Thanks for the suggestion though.

    Cheers

    Doug

    That was for Drew, Doug, since he specifically asked. No worries. ...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Are the posted questions getting worse?

    Alvin Ramard (12/7/2010)


    Craig Farrell (12/7/2010)


    GilaMonster (12/7/2010)


    Two that produced the 'wtf' reaction tonight...

    http://www.sqlservercentral.com/Forums/Topic1031451-391-1.aspx

    Seriously?

    http://www.sqlservercentral.com/Forums/FindPost1031507.aspx

    Petty games with words and an attempt to be right?

    Nono, it was an attempt to be accurate. ...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: How do you become SSIS/SSRS/SSAS Administrator or Developer?

    foxjazzG (12/7/2010)


    Well of course, unless your Craig Farrell

    Heh, no. I became an administrator and fuddled my way through it mostly because noone around me at the time wanted anything...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Previous Month Function

    The Dixie Flatline (12/7/2010)


    Jeff Moden (12/6/2010)


    The Dixie Flatline (12/6/2010)


    If I understand you correctly, you always want the start and end dates from the prior month, regardless of the starting and...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: How to run 2 queries every month

    jayoub1 (12/7/2010)


    I understand how to join tables, but dont know how it would help. Once the tables are joined what then.

    Sorry, I am a newbi

    Alright, let's see...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Are the posted questions getting worse?

    GilaMonster (12/7/2010)


    Two that produced the 'wtf' reaction tonight...

    http://www.sqlservercentral.com/Forums/Topic1031451-391-1.aspx

    Seriously?

    http://www.sqlservercentral.com/Forums/FindPost1031507.aspx

    Petty games with words and an attempt to be right?

    Nono, it was an attempt to be accurate. C'mon, get it right....


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: How do you become SSIS/SSRS/SSAS Administrator or Developer?

    Wow, seriously Fox? Man, my High School degree is fading fast.

    Short form: Pick up a developer's copy of SQL Server, in specific you want to get your hands...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

Viewing 15 posts - 4,681 through 4,695 (of 5,678 total)