Forum Replies Created

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

  • RE: Hidden Tricks To SQL Server Table Cleanup

    Sometimes I use this trick ....

    Create tempTable ( the same as bigTable)

    then

    sp_rename bigtable, secondTableName

    sp_rename tempTable, bigTable

    you can do it in transaction ...

    after that you have bigTable empty,...

  • RE: 9 Things to Do When You Inherit a Database

    "Drop obsolete objects" <-- I have practice to rename it first into for_delete_object_name (for objects which I'm "enough" sure, that could allways be a problem) and wait "enough" time

    "enough" is...

  • RE: use print statement in stored procedure

    Eugene Elutin (4/17/2012)


    zojan (4/17/2012)


    If you want log steps of the SP_ you can use loging into log_table.

    ...

    Not good option for SQL Server as there is no direct equivalent to autonomous...

  • RE: use print statement in stored procedure

    If you want log steps of the SP_ you can use loging into log_table.

    You can lo step (which is executed), Getdate(),...

    you can add sp_name column to log more than...

  • RE: Performance and tuning

    Sean Lange (4/13/2012)


    jzoran (4/13/2012)


    If the request is reduce time of execution from 20 min to 20 sec the only one possibility is checking indexes (missing indexes or it could be...

  • RE: Performance and tuning

    If the request is reduce time of execution from 20 min to 20 sec the only one possibility is checking indexes (missing indexes or it could be right index but...

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