Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • RE: How to circumvent SSIS validation when running package as a scheduled task?

    Iggy-SQL (6/15/2011)


    Thanks for this Craig. Whilst useful, I don't think I can use it because there will be case where the file will not exist, and hence, rather than throwing...

  • RE: How to circumvent SSIS validation when running package as a scheduled task?

    Go to the event handlers tab, select the package root, create "OnPreValidate".

    Add a Script Task, language C#, and paste the following main function:

    public void Main()

    ...

  • RE: question about INSERT to [N]VARCHAR field

    alexms_2001 (6/14/2011)


    To opc.three:

    > Integers are the default data type SQL Server

    ... and we know it how?

    This is what the question was all about, but googling for something like "sql server...

  • RE: Comparison of Dates in SQL

    Jeff Moden (4/28/2009)


    Percent of what? Percent of BATCH??? That absolutely cannot be trusted. Only actual cpu usage, duration, reads, and writes should be used to measure performance.

    [p]Actually,...

  • RE: Comparison of Dates in SQL

    rob.lobbe (4/28/2009)


    Not sure why dates cause so much trouble...

    declare

    @date datetime,

    @today datetime,

    @tonight datetime

    select

    @date = getdate(),

    @today = convert(datetime,convert(int,@date)),--use smallint for smalldatetime

    ...

  • RE: Comparison of Dates in SQL

    Paul White (4/28/2009)

    It sounds as if you are quoting percentage batch costs from the execution plan.

    The results were from batch queries, 100 each with random dates for each iteration, I...

  • RE: Comparison of Dates in SQL

    guess we could always just run both methods over a largish table and get stats out of the query analyser (like cpu usage, etc)

    I did exactly that, using the small...

Viewing 7 posts - 1 through 7 (of 7 total)