Forum Replies Created

Viewing 15 posts - 16,066 through 16,080 (of 49,552 total)

  • RE: Logic problem in "SET [Quantity_Remaining] = [Quantity_Remaining] - 1"

    briancampbellmcad (10/16/2012)


    Let me make sure I understand this line by line and have each right so far...

    First, isn't the line "WHERE Transaction_Type = 'From Bulk Assignment'"

    correctly referenceing the INSERTED...

    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: What are reading now?

    Ooh, need to go update my reading list....

    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: Attaching a MDF with a missing LDF

    What, the database backup won't restore? (restore from backup as in RESTORE DATABASE <db name> FROM ...)

    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 Server Security issue.

    No, it's not.

    You can remove their access, but that will just slow them down if they really want access. Someone who is local admin on the server can get sysadmin...

    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: Attaching a MDF with a missing LDF

    Restore from backup.

    You've got a data file from a DB that was not shut down cleanly, so SQL cannot just recreate the log file. You can force it to do...

    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: slow dm_db_index_physical_stats query

    Size of tables, throughput of IO subsystem.

    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: Logic problem in "SET [Quantity_Remaining] = [Quantity_Remaining] - 1"

    Inside a trigger you have access to the inserted and deleted pseudo-tables which contain the rows that were affected by the operation that fired the trigger. You need to change...

    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: Health Check - Index Fragmentation and Stats

    Index rebuilds... very much an 'it depends'

    Depends on the fragmentation %, the size of the table and how the table is accessed. Low fragmentation, small table or mostly seeks and...

    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: Health Check - Index Fragmentation and Stats

    menon.satyen (10/16/2012)


    Although one thing to note is that post index rebuilding, the transaction log grows. It needs to be shrunk.

    No, it absolutely does not. Please read through this - Managing...

    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: Critical issue - need help please

    I suspect this is a performance problem at the root, the 'hang' sounds like a query that's now running far too slow because of data volume, lack of maintenance ...

    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: Shrinking Transaction Log File "the right way"

    Perry Whittle (10/16/2012)


    What i would want the author to take away from this is to always fully research your article and if you're unsure then have someone peer review it

    I'll...

    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: Very Large Transaction File

    Scheduled maintenance jobs, most likely index rebuilds

    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: Upgraded SQL Server 2005 to SQL Server 2008, but it still reports 2005

    Check SQL Server Configuration Manager. The screen shot of installed programs shows 2 SQL installations, one 2005, one 2008 R2.

    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' is not recognized as an internal or external command

    Also since you have not specified a server, that will attempt to connect to the default instance on the machine you are running it on. If that's not the correct...

    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: Would a smaller number of VLFs in the log speed up the redo phase of recovery of a mirror snapshot?

    Marios Philippopoulos (10/16/2012)


    Perry Whittle (10/16/2012)


    Marios Philippopoulos (10/16/2012)


    I will probably not do that, as it seems a bit too much voodoo to me... 🙂

    Whats voodoo about creating a table, inserting...

    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 - 16,066 through 16,080 (of 49,552 total)