Forum Replies Created

Viewing 15 posts - 1,621 through 1,635 (of 6,036 total)

  • RE: purging old data and outer joins

    Orlando Colamatteo (2/14/2016)


    Sergiy (2/14/2016)


    In this case the best solution would be simply to stop the job.

    What an Agile thing to propose.

    I don't think so.

    "Agile thing" is to quickly bake a...

    _____________
    Code for TallyGenerator

  • RE: purging old data and outer joins

    Indianrock (2/13/2016)


    Thanks. I added the order by because the actual purge script is loading records into a temp table ( address_id ) and someone suggested that deleting by that order...

    _____________
    Code for TallyGenerator

  • RE: purging old data and outer joins

    Indianrock (2/14/2016)


    You're correct that the Address table may not be worth bothering with as far as purging. There are ten other tables such as these which have more delete...

    _____________
    Code for TallyGenerator

  • RE: purging old data and outer joins

    Indianrock (2/14/2016)


    A re-write project is about to start.

    I believe it's a perfect opportunity to address the issue.

    I'm just trying to fix some purge jobs that weren't performing well.

    ADDRESS

    ...

    _____________
    Code for TallyGenerator

  • RE: purging old data and outer joins

    Deleting of addresses from database does not look like a bright idea.

    There should not be such task in the first place.

    It only makes sense if an address cannot be reused...

    _____________
    Code for TallyGenerator

  • RE: Improving Performance

    All my customers feel lucky. 😛

    _____________
    Code for TallyGenerator

  • RE: Improving Performance

    Orlando Colamatteo (2/11/2016)


    Sergiy (2/11/2016)


    Hugo Kornelis (2/11/2016)


    A pretty dangerous thing to do, and an incredibly irresponsible advice to put out on forums.

    Believe me, unfortunately - it's not.

    Those who know what their...

    _____________
    Code for TallyGenerator

  • RE: t-sql 2012 convert and cast issue

    wendy elizabeth (2/11/2016)


    I have the following t-sql 2012, which is the following:

    DECLARE @endYear varchar(04) = 2016

    select convert(smalldatetime, ('07/31/' + convert(char(02), @endYear - 1)))

    select convert(smalldatetime, '08/01/' + @endYear )

    that is...

    _____________
    Code for TallyGenerator

  • RE: Improving Performance

    Hugo Kornelis (2/11/2016)


    A pretty dangerous thing to do, and an incredibly irresponsible advice to put out on forums.

    Believe me, unfortunately - it's not.

    Those who know what their data types mean...

    _____________
    Code for TallyGenerator

  • RE: Trigger not Update another table

    luissantos (2/11/2016)


    Hello Sergiy

    I rebuild my trigger with your script, but if i make a new document and save my column don´t update with the information. Why ??

    You need to post...

    _____________
    Code for TallyGenerator

  • RE: Trigger issue committing data

    JKSQL (2/11/2016)


    I thought we were saying something like this would work

    Change the type of trigger and your initial code will be just fine.

    I'd only recommend replacing "IN" with an "INNER...

    _____________
    Code for TallyGenerator

  • RE: Change column smallint to int 300 million records

    Indianrock (2/11/2016)


    Management's main concern is no blocking/locking.

    That's where following the clustered index order comes to play.

    You lock the continuous chunk of data and remove it.

    Minimal number of pages affected,...

    _____________
    Code for TallyGenerator

  • RE: Improving Performance

    Junglee_George (2/11/2016)


    The data type of @partners and @Container is NVARCHAR(MAX)

    Partners value can be like 'EUADVE', 'EUUSEB', 'EUBGLE'

    Containers value can be like 'LOC-DENI-000012', 'LOC-DEST-000002', 'LOC-BRSP-000025'

    Never ever use NVARCHAR(MAX) for column data...

    _____________
    Code for TallyGenerator

  • RE: Trigger issue committing data

    JKSQL (2/11/2016)


    OK so it is not a pass/fail. It is a Pass -> UPDATE SomeTable SET WHERE. That is what I was kind of thinking but wasn't sure. ...

    _____________
    Code for TallyGenerator

  • RE: Change column smallint to int 300 million records

    Deleting by a single row is probably not the smartest idea.

    The process by itself creates so much of overhead that deleting by 10 or even 100 rows may not affect...

    _____________
    Code for TallyGenerator

Viewing 15 posts - 1,621 through 1,635 (of 6,036 total)