Forum Replies Created

Viewing 15 posts - 14,701 through 14,715 (of 49,552 total)

  • RE: update trigger

    I say exactly what I said earlier.

    As it stands, it's not going to prevent anything. It just notes that updates aren't permitted and then finishes, thus completing the update.

    In...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: things to know when designing a new database

    Maybe start with this:

    http://www.amazon.com/Server-Relational-Database-Implementation-Experts/dp/143020866X/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Creating and Running a Trace from Stored Proc

    You've got double slashes in your path.

    set @OutputFileName = 'C:\\tracefiles\SQL_Performance' + '_' + convert(varchar(20), getdate(),112) + Replace(convert(varchar(20), getdate(),108),':','')

    The first error is 'could not create trace file'.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: CheckDB fails Sunday, but ok Monday without repair

    Del Lee (1/21/2013)


    To me, it sounds like the corruption is still there and can reappear when that page or pages become "reallocated."

    No. When a page is reallocated, it's...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: CheckDB fails Sunday, but ok Monday without repair

    Fixed, no. Deallocated the corrupt page, yes.

    CheckDB only checks allocated pages. If an index rebuild deallocated a corrupt page as part of the rebuild, the corruption would 'vanish', because it's...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: CheckDB fails Sunday, but ok Monday without repair

    Got an index rebuild after the integrity check?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: cluster index and non-clustered index

    Scott Rankin (1/21/2013)


    So you are getting way down into the heart of SQL Server internals here.

    Not that deep really

    But, if I understand it correctly, the difference between logical and physical...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: MSSQLSERVER.exe migration to different drive letter

    jfriedl (1/21/2013)


    so I have a bit of an odd question. at my new company the former DBA did one of the messiest SQL installs I have ever seen. ...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: MSSQLSERVER.exe migration to different drive letter

    Lowell (1/21/2013)


    as far as I know, the binaries for SQL must be installed on the %systemdrive% (usually the C:\ drive)

    The binaries can be anywhere. I have mine installed on the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: cluster index and non-clustered index

    Yes, I know, books online is wrong. I really must get ahold of someone on the docs team and get this fixed.

    It's trivial to prove, I'll leave that up to...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: can dml triggers statements get logged

    sej2008 (1/21/2013)


    I want to understand since dml triggers are using data modification statements

    are they logged in log file and if yes when?

    and can we log those trigger events in auditing...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: update trigger

    As it stands, it's not going to prevent anything. It just notes that updates aren't permitted and then finishes, thus completing the update.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: DBCC CHECKDB taking a very long time to run on 500MB database

    mjjordan (1/21/2013)


    Based on what I had found with my searches I was under the impression that using a backup was a last resort after attempting a repair.

    No. The backup...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: DBCC CHECKDB taking a very long time to run on 500MB database

    Firstly, why did you decide to go for an emergency mode repair (that may very well result in data loss) instead of restoring a backup?

    Emergency mode repair is the very...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: cluster index and non-clustered index

    Scott Rankin (1/21/2013)


    This is what a clustered index does. If physically orders the data within the table.

    Logical order. Not physical. The index may be physically ordered by the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 14,701 through 14,715 (of 49,552 total)