Forum Replies Created

Viewing 15 posts - 4,981 through 4,995 (of 5,678 total)

  • RE: Temp Table in View

    Subqueries, CTEs, or inline TVFs. Views need to be a single statement. Also remember views aren't encapsulated result sets unless you turn them into indexed views. Any...


    - 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: Need update First, Second and Third day only

    Dehqon D. (11/11/2010)


    Thank you very much bro, it's working pretty well, just little problem is my supervisor asked me not to use temp table, as there gonna be huge DB,...


    - 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: Need update First, Second and Third day only

    The reason is there is no rownumber as oracle would describe it, and even using a standard identity column wouldn't help in the case of multiple doclinks.

    This is what 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: Running index based on previous row

    Digs (11/10/2010)


    Thanks..:-) 🙂 🙂

    I need to run this over about 20,000 records once per day.

    I assume this wont blow up. 😉

    Nice stuff...

    It'll probably blow up, depending on your 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: Need update First, Second and Third day only

    Not the cleanest in optimization because of the multiple correlated subqueries, but this will get you on your way I believe. I used a second cte to trim down...


    - 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: Running index based on previous row

    Digs (11/10/2010)


    This is more that a running total, its an index calculation, and I have no idea what all article means..

    Unfortunately Digs, the running totals bit is not a simple...


    - 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: Joining to two One-to-Many tables - should be simple

    New post in case of a cross post.

    To answer your question more specifically as to what happened with the 6 rows, is this:

    select FamilyName, ChildName, CarName

    from @FamilyMember f

    join @Kids k...


    - 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: Joining to two One-to-Many tables - should be simple

    Ed Srdoc (11/10/2010)


    My apologies.

    I may have been put off by your initial response that ended in, 'We're not here to do your homework'. Maybe that wasn't directed at me....


    - 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?

    WayneS (11/10/2010)


    Craig Farrell (11/10/2010)


    Must be the week...

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

    Actually, once the OP explained him/her self, I can see where they copped that attitude - the "We're not here to do your homework"...


    - 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?

    Must be the week...

    http://www.sqlservercentral.com/Forums/Topic1019000-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: Differential backups breaking Log shipping

    kiranjanjanam (11/10/2010)


    Thanks guys for your replies...

    After seeing the posts, I think its the log backups taken out of log shipping that is breaking the log shipping.

    i will communicate with the...


    - 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: Joining to two One-to-Many tables - should be simple

    Ed Srdoc (11/10/2010)


    Thanks for your reply Craig, but your code doesn't even compile.

    Maybe I could get somebody that's not such a dick to answer my question!

    A) Code compiled just fine...


    - 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 difference in value from previous row

    Modified slightly because I avoid restricted names like the plague, and you left an extra UNION ALL in there. 🙂

    Mind you, you're going to probably have to extrapolate from this...


    - 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: Joining to two One-to-Many tables - should be simple

    The short version is you've got your relationships all twisted up. You're not chaining ChildID into the cars table, you're chaining familyID, which is causing you to link 2*3...


    - 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: Joining to two One-to-Many tables - should be simple

    Sorry, doublepost.


    - 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,981 through 4,995 (of 5,678 total)