Forum Replies Created

Viewing 15 posts - 31,441 through 31,455 (of 49,552 total)

  • RE: Updating a table starting with the first empty column in a specific row

    Duplicate post. No replies to this thread please. Direct replies to:http://www.sqlservercentral.com/Forums/Topic963971-1292-1.aspx

    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: Resolve Deadlock issues with sharepoint application

    Adiga (8/4/2010)


    You may find this bulletin useful.

    That's for SQL 2000. There are better ways of investigating deadlocks on SQL 2005/2008.

    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 Stats or Rebuild Index Strategies

    Tara Kizer (8/4/2010)


    That is only true when you pass from no rows to more than 0.

    Then after the first 500 and finally when around 20% plus 500 modifications have occurred...

    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 Stats or Rebuild Index Strategies

    Tara Kizer (8/4/2010)


    That is some bad code then. 😉

    If you're curious, have a look at the code and read some of the comments that I left out... Also of...

    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 Stats or Rebuild Index Strategies

    Easy to prove.

    sp_helptext 'sp_updatestats'

    Excerpt:

    set @index_names = cursor local fast_forward read_only for

    select name, indid, rowmodctr from sys.sysindexes

    where id = @table_id and indid > 0 and indexproperty(id, name, 'ishypothetical') = 0

    order by...

    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: Are the posted questions getting worse?

    Steve Jones - Editor (8/4/2010)


    We have that clock in the kitchen in our house. People think it's funny.

    My supervisor at the university has a very irritating clock. No numbers on...

    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: Missing log file makes DB suspect...

    No, you want to end the quote before putting your reply in, not start another. Still hard to work out who said what. Like this:

    GilaMonster (8/2/2010)


    mrpush (8/2/2010)


    Why would 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: Update Stats or Rebuild Index Strategies

    Tara Kizer (8/4/2010)


    You should not update stats on everything as that puts an unecessary load on the database server. Instead you should use sp_updatestats which makes a decision on...

    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: Are the posted questions getting worse?

    Jack Corbett (8/4/2010)


    GilaMonster (8/4/2010)


    Jack Corbett (8/4/2010)


    Probably the most complex SQL I've had to write. Too many OUTER JOINs (business requires this design), and then parameters that could turn 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: Are the posted questions getting worse?

    ALZDBA (8/4/2010)


    and how do they store +24 hours in that time column ? (add an extra daycounter column ??) 😉

    Can't happen. There's a row per day and the hours 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: Are the posted questions getting worse?

    Jack Corbett (8/4/2010)


    Probably the most complex SQL I've had to write. Too many OUTER JOINs (business requires this design), and then parameters that could turn the OUTER JOINs 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: sp_msforeachdb DBCC SHRINKFILE Query Problems

    Pete-L (8/4/2010)


    Hmm strange, when I script out the GUI the command includes the TRUNCATEONLY

    Yes it does. Doesn't make it right. Check Books online

    DECLARE @command1 varchar(100)

    DECLARE @command2 varchar(100)

    exec sp_MSforeachdb set...

    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: sp_msforeachdb DBCC SHRINKFILE Query Problems

    Pete-L (8/4/2010)


    If I was to try and get the MSforeachdb working am I on the right track?

    No. Shrink file can't refer to a query, it needs a value....

    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: Separating Index from Data

    Mind zipping that? It's a little large.

    i wasn't asking if you were seeing high disk usage. You said that you were. I asked if it has been checked and confirmed...

    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: sp_msforeachdb DBCC SHRINKFILE Query Problems

    As long as it's a once-off....

    You can do this with foreachDB, but it's far from the easiest way. The below script will generate all the shrink commands for you. That...

    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 - 31,441 through 31,455 (of 49,552 total)