Forum Replies Created

Viewing 15 posts - 20,161 through 20,175 (of 49,552 total)

  • RE: Need Help on Shrinking Database....

    Personally I would strongly recommend that you remove that automated task entirely. Shrinking logs is not as harmful as shrinking data files, but it is still a poor thing 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: Loop through the tables and check if the datatype is appropriate to the data stored

    How would you know/define whether the datatype is appropriate? Looping through the tables is easy.

    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: Transaction log backup, tempdb negative space?

    Don't shrink?

    As I said, trying to shrink TempDB with the system in use is documented to be able to cause corruption, so it's really not a good idea.

    Why is a...

    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: Finding TableNames and Column Names in storedProcedure.

    SELECT definition FROM sys.sql_modules AS sm WHERE object_id = OBJECT_ID('sp_upgraddiagrams')

    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: Finding TableNames and Column Names in storedProcedure.

    syscomments is deprecated, should not be used, only for backward compat with SQL 2000, use sys.sql_modules instead.

    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: T-log is failing

    Corruption in the log is reasonably easy to fix, as long as it's the inactive portion. You've got backups right up to when this started?

    Switch to simple recovery, run a...

    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 statement

    Maybe. Depends how many rows will be affected, how many rows are in the table, how much concurrent access there is (and hence how much lock memory is available).

    The updates...

    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: Finding TableNames and Column Names in storedProcedure.

    Try using the sys.dm_sql_referenced_entities DMV.

    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: Unrelated indexes being updated

    Maybe worth a read: http://www.sqlservercentral.com/articles/Indexing/68439/

    http://www.sqlservercentral.com/articles/Indexing/68563/

    http://www.sqlservercentral.com/articles/Indexing/68636/

    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: SQL 2005 64 bit Consuming RAM Rapidly (Please Help)

    That's normal, expected, documented behaviour. SQL will take as much memory as it is allowed to, up to max server memory (plus a small amount of non-buffer memory)

    p.s. If locked...

    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: Unrelated indexes being updated

    The clustered index key is present in all nonclustered indexes. That's one of the reasons that the clustered index is recommended to be on a non-changing column.

    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: SQL 2005 64 bit Consuming RAM Rapidly (Please Help)

    jason.nodarse (2/21/2012)


    When I do a sp_configure it does not list out the max in memory Can someone give me the command so I can see if I already have...

    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: SQL 2005 64 bit Consuming RAM Rapidly (Please Help)

    JeremyE (2/21/2012)


    You can set the max server memory to 20 GB for SQL by executing the following:

    EXEC sp_configure 'max server memory (MB)', '20480'

    GO

    RECONFIGURE WITH OVERRIDE

    GO

    You don't need Override. Override is...

    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: SQL 2005 64 bit Consuming RAM Rapidly (Please Help)

    Lowell and Jeremy have both explained how to do it, one using the GUI, one using T-SQL.

    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: Stairway to SQL Server Indexes: Step 12, Create Alter Drop

    phelmer (2/21/2012)


    Gail, thank you for the reply.

    GilaMonster (2/17/2012)


    Disabling it first means that the index is gone and not usable until the rebuild finished.

    It also seems likely that you'd end...

    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 - 20,161 through 20,175 (of 49,552 total)