Forum Replies Created

Viewing 15 posts - 5,161 through 5,175 (of 5,678 total)

  • RE: Execute SQL task to reseed identity doesn't work on data flow but does in SSMS

    HelsUK (10/29/2010)


    Yes, the TRUNCATE is always working - there are always 19972 rows in my table after running the package. The identity was continuing from 19973 (not 20102 sorry)....


    - 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: Simple DATEDIFF explanation

    Sorry for that then, the hard coded values are usually reserved for homework problems.

    This looks a LOT like a QotD type of trip up. Your boss quizzing your skills...


    - 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: Simple DATEDIFF explanation

    Ricardumus (10/29/2010)


    Hello.

    I just need a simple description of this query and its function.

    ROUND(DATEDIFF(d,'12/01/2009', DATEADD(d,-1,'12/01/2010'))/365.00,1) AS [Years]

    It's a trick question. What textbook and chapter? We can probably help...


    - 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: Execute SQL task to reseed identity doesn't work on data flow but does in SSMS

    HelsUK (10/29/2010)


    Hi,

    I have a SSIS package that should truncate my staging table, reseed the identity value to 100 and then insert some data into the staging table.

    The problem is that...


    - 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: Execute SQL task to reseed identity doesn't work on data flow but does in SSMS

    Alvin Ramard (10/29/2010)


    I don't agree with your thinking Craig because the identity is not metadata that is being held by SSIS. It's resides in the database engine; well, that's...


    - 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: Database Diagram printing problems

    Set zoom to visible level (75%-100%).

    Database Diagram menu, copy diagram to clipboard.

    MSPaint - Paste - Print.

    Perfect? No. But it works.


    - 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: Execute SQL task to reseed identity doesn't work on data flow but does in SSMS

    I believe this is because SSIS won't refresh metadata at runtime. This part confuses me:

    Weirdly, it did work twice - the only change I made was to add 'GO'...


    - 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: Count the number of rows with same last part

    With no test data you'll have to adapt this to your DDL/structure, but this is one approach:

    SELECT

    REVERSE( LEFT( REVERSE(Col1), CHARINDEX( '.', REVERSE(Col1) ) -1 ) ),

    count(*) as NumOccur

    FROM

    table

    GROUP BY

    REVERSE( LEFT(...


    - 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: First SSIS package.... isolated one error to one 4000 character column

    Addendum, some googled links on the topic:

    http://jetlounge.net/blogs/teched/archive/2009/02/03/fix-ssis-script-component-error-quot-the-value-is-too-large-to-fit-in-the-column-data-area-of-the-buffer-quot.aspx

    The last post of this:

    http://www.sqlbi.com/Default.aspx?tabid=72&forumid=12&threadid=665&scope=posts

    These all point to making sure the destination is as large as the source, even with manipulation.

    This may help a...


    - 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: First SSIS package.... isolated one error to one 4000 character column

    If I'm reading that right it's not the VARCHAR() causing the problem, it's the INT32 field. Something in the source data is one REALLY big number.


    - 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: Sr level interview questions

    GilaMonster (10/29/2010)


    I've seen someone (who claimed to be a senior DBA) score 0/75 on a DBA technical test where the first question read:

    Write a query that returns the FirstName 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: SSIS ADVICE

    Wut? You want to autogenerate... a timestamp column?

    Are you PURPOSELY coding to obfuscate data? What the heck?

    If you need a larger identity column, go to bigint.

    If you're trying...


    - 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: SQL Server Breaks down for every 10mins

    Hub/Router fried/shorting? Heartbeat nic cards shorted? I'd look for a physical failure, not a software one, after a massive power failure.


    - 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: For Each Loop Container

    andrew gothard (10/29/2010)


    Ah - in that case - what I've done in the past is to have the script object parse the filename - set a value in a variable...


    - 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: Pivot I guess

    Serial/Quirky update in a temp table, a while loop, or possibly a recursion cte. I don't have time right now to convert your data into a usable test structure.

    If...


    - 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 - 5,161 through 5,175 (of 5,678 total)