Forum Replies Created

Viewing 15 posts - 106 through 120 (of 196 total)

  • RE: For Each Loop - error accessing text file

    Can you upload a sample package so we can reproduce the error?

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: SSIS Manifest Deployment with Package Configs

    Can you explain in more detail what it is you are trying to do?

    Personally, I never use the deployment manifest. I also store my Package Configurations in SQL Server. This...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: File System Task > Audit / logging

    Create a record using an Execute SQL Task (SQL) before starting your Foreach Loop Container (FEA) with two columns = 0.

    Update the record with an SQL at the beginning of...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Checkpoint file is not updated

    Looks like you set all the necessary properties correct. Have you checked your package in BIDS? Can you upload your package so we can have a look at it?

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Need help in SSIS

    Look under Type Casts in the Derived Column Transformation.

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: OLE DB Source > Re-directing error rows

    An alternative to check the Row Count in a script is to use a precedence constraint. For Evaluation operation use Expression and check for RowCount > 0.

    The precedence constraint is...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Week Calculation returning unexpected results.

    I first had to lookup what lakh means - lucky there is Google 🙂 and Wikipedia :-))

    So you have about 200.000 records, right?

    Scalar funcions are notorious for causing performance problems...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Week Calculation returning unexpected results.

    You're welcome. I had fun solving the puzzle.

    Do it like this

    SELECT DATEPART(yy, date) AS [Year]

    ,DATEPART(ww, date) AS [Week]

    ...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Week Calculation returning unexpected results.

    Try this

    SET DATEFIRST 1;

    SELECT (DATEPART(wk, '20091225') + 50) % 52 + 1; -- returns 51

    SELECT (DATEPART(wk, '20091226') + 50) % 52 + 1; -- returns 51

    SELECT (DATEPART(wk, '20091227') + 50)...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Week Calculation returning unexpected results.

    Ooops, you're right. Looks like SQL Server says week 1 starts on Jan 1 like BOL say, but week 2 then starts on the day you specified with DATEFIRST.

    This behaviour...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Week Calculation returning unexpected results.

    Hold your horses Gandalf! Who said anything about hard coding?

    The value to subtract can easily be calculated dynamically and integrated into the query:

    SELECT DATEPART(wk,DATEADD(dd, -(@@datefirst + 7 - DATEPART(dw,...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Week Calculation returning unexpected results.

    From BOL:

    January 1 of any year defines the starting number for the week datepart, for example: DATEPART (wk, 'Jan 1, xxxx') = 1, where xxxx is any year.

    One workaround is...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Dateadd function error

    Not sure what you are trying to achieve here. I also suggest you check BOL to understand the syntax, but here's two additional comments:

    1. why write convert(varchar,20100201) and not '20100201'?

    2....

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: I don't know how to do this.... help!

    Or

    SELECT put column names here -- don't use select *

    FROM ORDERS

    WHERE DATE IS NOT NULL

    AND (CLIENT...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Emptying and/or merge datafiles

    Guus,

    Not sure this will work but it might be worth giving a try (just hoping you want run into the same limitations).

    In SSIS there are several tasks that you can...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

Viewing 15 posts - 106 through 120 (of 196 total)