Forum Replies Created

Viewing 15 posts - 19,831 through 19,845 (of 49,552 total)

  • RE: Cursor row-by-row updates

    Doable without a cursor. Look up NTile.

    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: Query help urgent!!

    Wow, with all the converts and functions and case and the complete lack of useful indexes its a wonder this ever performs well...

    Can you post the two execution plans please?...

    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: Query help urgent!!

    My guess, you're running into this problem: http://sqlinthewild.co.za/index.php/2011/03/22/statistics-row-estimations-and-the-ascending-date-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: logshipping-

    There's a log backup that was taken on the primary but not copied to the secondary. Probably from someone running an ad-hoc log backup or a second log backup job.

    Find...

    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 2012 - Column Store Index

    I certainly hope not, it's not a replacement for 'regular' nonclustered indexes. I can just imagine the chaos if the missing indexes did suggest columnstore indexes and people added them...

    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: Data Access Mystery

    cmdQuickPoDetails__Get.Parameters("@ProjectID").Value = CInt(Session("ProjectID"))

    Is the session variable getting set correctly for that user's login?

    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 error 823

    Operating system error 21 means "The device is not ready", so you have a drive that has a SQL data file on it that's disappeared.

    You need to resolve 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: SQL Server 2012 - Column Store Index

    I wouldn't say 'more of read-only', it's completely read only, the index and the table that it's on. I can see uses in OLTP systems (especially historical data). It's being...

    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: Adding primarey key on table column

    Drop the clustered index (it's the dependant object that the error message referred to)

    Alter the column to not null

    Add a primary key.

    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 2012 - Column Store Index

    In testing several people have. Yes, they can be.

    Look up Joseph Sack's blog post on them.

    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: Coalesce Question and the Laxy SQL Developer

    Read up on FOR XML PATH, it's a way of concatenating rows. There's an article on the simple-talk site.

    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: High response times and queue lenthing duringlog back up

    150 VLFs is not a huge amount. Still, if you want to get that number down, shrink the log to 0 then regrow to full size in a small number...

    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: To detect dead lock exists?

    There are lots better ways to concatenate with commas than you have there. Look around for the XML Path method. When you find that, consider keeping 2 copies of 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: To detect dead lock exists?

    Post the code you have so far. Just want to see how you've done it.

    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: Restoring 2008 backups into 2005 instance

    Cannot be done. Databases cannot be downgraded.

    Got nothing to do with compatibility level, that can be changed up and down as you like, however once the database is attached 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

Viewing 15 posts - 19,831 through 19,845 (of 49,552 total)