• this link has a couple of screenshots and an explanation that can help:

    http://stackoverflow.com/questions/5772667/how-to-create-an-error-log-or-custom-error-log-within-an-ssis-package

    basically, SSIS has a built in error logging mechanism, and you can have it write to one or more locations, including a specific database.

    so you could have it write to a file, a databas eand the windows event log, all at the same time.

    Inside the script task itself, you can raise errors via code for "logical errors", or to log more detaila bout the error to help with debugging.

    a crappy example below:

    try

    {

    //--doing a bunch of work here

    if(Datatable.Rows.Count==0)

    {

    //Raise my own logical event

    Dts.Events.FireError(0, "Error in proc ProcessSpecialCSVFiles: ", "The datatable returned Zero Rows, when the expectation is there is always data, "", 0);

    }

    return true;

    }

    //catch all errors and log them!

    catch (Exception ex)

    {

    Dts.Events.FireError(0, "Error in proc ProcessSpecialCSVFiles: ", ex.Message, "", 0);

    return false;

    }

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!