Forum Replies Created

Viewing 15 posts - 2,311 through 2,325 (of 5,678 total)

  • RE: Having trouble sorting by hour

    chris 81958 (11/17/2011)


    I am new here and am VERY new to any type of programming.

    My database has a timepoint that incorporates data and time; e.g., 2010-12-01 17:00:00. I would...


    - 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: SUM from 2 CTE's

    bubs (11/17/2011)


    What I need it to return is:

    Name | FilteredHours | NonFiltered

    Steve | 20 ...


    - 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: Performance Question

    AGH, my eyes! ... and formatting is eaten.

    Can you edit your posts and wrap your code with the 'ifCode' shortcuts you see on the left? The one you...


    - 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: Composite index not being chosen by the optimizer

    My guess would be heuristics and the tipping point.

    Is 'my_column' in the actual clustered index? If not, try using it as an include in the index definition. You'll...


    - 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: Can't break out of loop on a SSIS Script

    This is in a transformation script component?

    You need to include the equivalent to this VB in your Catch.

    dts.TaskResult = dts.Results.Failure

    That should cause a hard stop on the row that's caught,...


    - 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: Performance Question

    Review the spid doing the initial call after reboot, and review its wait stats. Find out WHY that first one is taking so long, you'll have a better idea.

    My...


    - 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: Multiple times in result set - 4 times

    As mentioned, the cause of this is duplicate key data in multiple tables.

    from

    d_m m

    left join

    [ref].[dbo].[D_HDS] rg on

    rg.HDCode = m.G_DID

    left join

    [ref].[dbo].[D_HDS] ri on

    ri.HDCode = m.I_DID

    left join l_Qcat c...


    - 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: Filling Data Gaps for YTD Totals

    Is it safe to assume that this:

    RIGHT JOIN dim_date

    ...


    - 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: Missing Last Row of Data

    Brandie Tarvin (11/17/2011)


    Jeff,

    I'm not sure of the intention of ragged right, but I know for a fact in SSIS 2005 it was just about the only version of Flat File...


    - 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: Maximum flow from continuous flow rate

    Brian Ki (11/16/2011)


    I have had to pass this off to someone else who is finishing it, but they have tested your code and tell me it appears to work well...


    - 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: Maximum flow from continuous flow rate

    Jeff Moden (11/16/2011)


    Oh, my apologies... I lost track of this thread. Glad someone posted against it to refresh it in my inbox.

    Yeah, just hoping the OP comes back to...


    - 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: View Performance - Not using table index?

    Ninja's_RGR'us (11/15/2011)


    I just can't tell you what's happening without seeing both actual plans.

    Ever tried to get your car fixed without taking it to a mechanic? Pretty much same thing...


    - 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: query - sum of column

    This is horribly painful to do via SQL. This is best off done in the front end.

    The short form: You need to pivot, do a running total, 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: What about contract to hire

    Contract to Hire is pretty much the new version of the wait for 3 months before any of your benefits thing. The word is escaping me at the moment....


    - 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: Maximum flow from continuous flow rate

    Comments are in the code.

    DataBuild:

    IF OBJECT_ID('tempdb..#tester') IS NOT NULL

    DROP TABLE #tester

    CREATE TABLE #tester

    ( TimeOfEntry...


    - 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 - 2,311 through 2,325 (of 5,678 total)