Forum Replies Created

Viewing 15 posts - 241 through 255 (of 476 total)

  • RE: Logging Tables

    Mickey Stuewe (9/25/2015)


    7. Don't keep the audit log in your transaction database. Make a separate database for your logs. This will keep the backup and restore times shorter. It will...

  • RE: Logging Tables

    John Hanrahan (9/25/2015)


    I trap the errors but then display good info. Our users are taught to come get one of us so we can resolve it right then and...

  • RE: Logging Tables

    peter-757102 (9/25/2015)


    When building a log table there is nearly always a chronological order that can be exploited.

    Yup, agree with that, never spotted how I can exploit it though

    Create the clustered...

  • RE: Logging Tables

    peter-757102 (9/25/2015)


    Additionally there should not be one big log table. It is better to have a manageable active table or partition and have older unchanging data reside in their own.

    We...

  • RE: Need Backup Script to take all the databases

    Minion Backup might be an alternative to Ola's scripts.

  • RE: Logging Tables

    Log / Audit Data Changes

    We log changes to data in an "Audit" table. It has exactly the same columns as the main table, but with two additional columns for Audit...

  • RE: Logging Tables

    Script Run / Create SProc, Trigger, View etc. Logging

    I log every "run" of scripts that Create an SProc, Trigger, View etc. The call to the Script Logging SProc, at top...

  • RE: Logging Tables

    I have a Logging table which I use for all Page (website), Stored Procedure calls, and as a general log for unexpected errors.

    I also have a SessionLog table. All new...

  • RE: Preference of LEFT JOIN <table> WHERE ... IS NULL vs. NOT EXISTS ( ... )

    (A list of SELECT columns is not needed in the NOT EXISTS - SELECT * or SELECT 1 will do. Originally I think SELECT * in an EXISTS statement was...

  • RE: Conversion failed when converting the varchar value - Error

    WayneS (9/24/2015)


    this won't work... you need the "." between the different parts of the fully qualified name.

    O/P has

    Set @Dbo= '.dbo.'

    but I agree it would be better to have the schema...

  • RE: Can a hacker obtain database information from an unencrypted differential backup?

    It is raising the question in my mind about "when" we should encrypt.

    If we encrypt to-tape then the tape has a chance to compress. If we encrypt to-backup-file that is...

  • RE: When IsNumeric not numeric?

    Luis Cazares (9/24/2015)


    But there's nothing strange as the behavior is clearly documented on BOL.

    Indeed, I could have phrased it better but it requires that folk have read the DOCs and...

  • RE: When IsNumeric not numeric?

    Vic Rauch-303403 (9/24/2015)


    CONVERT(varchar,

    I recommend that you don't rely on the default size for varchar, there is some strange behaviour which will catch you out from time to time.

    I use (20)...

  • RE: Help me with the SYNTAX for the DELETE statement

    Ed Wagner (9/24/2015)


    I prefer the EXISTS approach instead of the OUTER JOIN/IS NULL approach. I think it's much clearer.

    I agree, although I've got used to the LEFT OUTER JOIN...

  • RE: MS-Jet Engine 4.x ODBC enabled databases to 1 Terabyte/5 billion rows (or) SQL SERVER?

    erichansen1836 (9/24/2015)


    I would not use Table CONTRAINTS (other than INDEXES) because that might interfere with my manual logic to enforce referential integrity in some way?

    Fair enough, but I would not...

Viewing 15 posts - 241 through 255 (of 476 total)