Forum Replies Created

Viewing 15 posts - 421 through 435 (of 7,164 total)

  • RE: TF Upsert destination Taking lot of time

    Thanks for posting back. Seeing improvements like that winds my clock.

    You must be processing a lot of data for it to continue to take 43 minutes. If this is...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: TF Upsert destination Taking lot of time

    I have a suggestion:

    Ditch the Upsert Component and instead do this:

    1. Add an Execute SQL Task above your Data Flow to truncate a new staging table* in the target...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Filename Expressions

    A workaround is to use a Script Task to generate your "current datestamp" at the beginning of your Package and assign that to a Variable of type String. Then, for...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: usp stored procedure prefix

    I think prefixing database objects makes code more difficult to read, initially. Eventually the brain gets used to ignoring prefixes and one could argue maybe even begins to expect it....

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Importing Error - Text was truncated...

    I am pretty sure you will not be able to see the Output Column options in the Import/Export Wizard. Before you complete the wizard, is there an option to save...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Excel tab name driven by a variable

    TAman (1/22/2016)


    No. I understand variables. That was not my question. I'll try to break it down deeper. My question is how to load an excel that contains sheet$...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Importing Error - Text was truncated...

    it is either character encoding issue or length causing truncation. can you post a Workbook (with sensitive data masked) tha causes the issue on your side that I can use...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Importing Error - Text was truncated...

    Try NVARCHAR(MAX).

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Importing Error - Text was truncated...

    What kind of file is it? a CSV you opened in Excel or is it an Excel Workbook (xls or xlsx)?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Error Handling - Pass Error as variable

    @ringovski, you're welcome, happy you got something suitable going.

    @Eirikur, agreed your solution should improve performance. It took me a second to cull out the test data creation from the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: How to pass parameter values to SQL query

    Funky stuff. Thanks for posting it. I would not expect anything but a scan out of the iTVF query plan even if you could remove the function. If you are...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: How to pass parameter values to SQL query

    boettger.andreas (1/21/2016)


    Sure.

    ALTER FUNCTION [dbo].[ICAgeingFuncT]

    (

    @CutOffDate varchar(6)

    )

    RETURNS TABLE

    AS

    RETURN

    (

    SELECT SUM(TRANSCOST) AS ItemValue, SUM(Quantity) AS Qty

    FROM ICIVAL

    WHERE LEFT(TRANSDATE,6) <= @CutOffDate

    );

    SELECT a.ItemValue, a.Qty, p.YearMonth, p.Period

    FROM Past12Months as p

    CROSS APPLY dbo.ICAgeingFuncT(p.YearMonth)...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Need to calculate nth day of nth month

    I just had a chance to dig up a table-size script. For every 11K rows (30 years of dates) the calendar table I posted occupies 2.75 MB of space in...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Update with Lock

    Is session 2 still waiting after session 1 is complete? As an aside, in session 1 you do not need an explicit transaction. Statements in SQL Server are atomic meaning...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: How to pass parameter values to SQL query

    boettger.andreas (1/21/2016)


    Sorry, too quick.

    How would I return multiple columns from the fucntion, i.e. not only quantity, but value also?

    Can I specify what columns the function should return?

    Convert the function to...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 421 through 435 (of 7,164 total)