Forum Replies Created

Viewing 15 posts - 376 through 390 (of 7,164 total)

  • RE: TRY/CATCH blocks in SQL

    Alexander Suprun (1/29/2016)


    Orlando Colamatteo (1/29/2016)


    Alexander Suprun (1/29/2016)


    It's not a very good practice to drop and re-create procedures.

    Curious on your resaoning, why do you say so?

    Because when you drop procedure you...

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

  • RE: TRY/CATCH blocks in SQL

    Alexander Suprun (1/29/2016)


    It's not a very good practice to drop and re-create procedures.

    Curious on your resaoning, why do you say so?

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

  • RE: Too much information can be counter-productive

    When presenting at least I find the rule of 5/3 - 3/5 to be good guidance. There is typically that one manager/director in the room that wants more and I...

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

  • RE: SSIS Bulk Insert doesn't load last line of data

    Hard to say without a copy of the data file and SSIS Package. Happy to repro on my side if you attach to this thread, or attach in a PM...

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

  • RE: Backup of Tail-Log

    GilaMonster (1/28/2016)


    You use it when you want to take a log backup and ensure that no more transactions can be made to the DB after the backup finishes, for example...

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

  • RE: TRY/CATCH blocks in SQL

    Please up-vote if you agree with the suggestion: CREATE OR ALTER statement

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

  • RE: Formatting SQL

    To the original question, redgate SQL Prompt is worth every penny IMO. I've been using it since the original beta version and rely on it heavily. So heavily in fact...

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

  • RE: Formatting SQL

    J Livingston SQL (1/29/2016)


    Jeff Moden (1/29/2016)


    Obfuscate ??

    CReAte tABle mytable(TranID INTEGER nOt nUll primAry KEy,CustomerID INTEGER nOt

    null,ProdID INTEGER NoT NulL,SalesAmount NUMERIC(5,2) not nUlL,TransDate

    VARCHAR(23) not NULl); iNsErT inTO mytable(TranID,CustomerID,ProdID,SalesAmount,

    TransDate) VALuES(142801,19246,7727,57.42,'2009-02-02 00:00:00.000');...

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

  • RE: Find Valid Date from String

    Luis Cazares (1/28/2016)


    Orlando Colamatteo (1/28/2016)


    Ugh, thanks for the correction Ed. I am confident my C# code is correct but I was going from memory on the post as to the...

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

  • RE: Find Valid Date from String

    Ugh, thanks for the correction Ed. I am confident my C# code is correct but I was going from memory on the post as to the boundaries (was juat trying...

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

  • RE: Design change not to use Dynamic SQL?

    Sorry, I neglected to speak to your larger question of getting away from dynamic SQL. it looks like you have SQL fragments or conditions sitting in tables, like this

    SELECT...

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

  • RE: Design change not to use Dynamic SQL?

    Looks like a custom rules engine implemented in T-SQL. I inherited one such system and watched another one get commissioned. I was late to the party in both cases and...

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

  • RE: Find Valid Date from String

    thomashohner (1/28/2016)


    I'm looking for a better method of doing this. Thanks for any help or insight in advance.

    As Steve mentioned, on SQL 2012 we would favor the TRY_* functions built...

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

  • RE: Create Text File from SELECT

    Thanks for sharing Jeff. Method 1 is what I had in mind for a T-SQL+command-line solution. Method 2 sounds quite interesting.

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

  • RE: SSIS Script Task and running a stored procedure

    JustMarie (1/28/2016)


    The original plan was to use SSRS but that's not an option here right now. So throw that one out the window.

    I commonly see the same few barriers...

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

Viewing 15 posts - 376 through 390 (of 7,164 total)