|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 8:12 AM
Points: 275,
Visits: 679
|
|
I've received a report from a customer of mine that the consistency check is causing a database schema version change and causing issues with lazy schema validation. As a result every first distributed query running after consistency check will fail.
I've not been able to verify this in my research. Anyone out there have any links or references I can use in my research?
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 8:12 AM
Points: 275,
Visits: 679
|
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 8:12 AM
Points: 275,
Visits: 679
|
|
| unable to find any articles stating schema version changes will occur with dbcc checkdb
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 3:07 PM
Points: 37,687,
Visits: 29,946
|
|
Shouldn't. CheckDB just checks. It should not make any changes unless run with one of the repair options.
Is that the only job running at the time? No index rebuilds? Nothing running an sp_recompile?
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP 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
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 8:12 AM
Points: 275,
Visits: 679
|
|
Thanks Guru,
There are no other jobs running for a 1 hour or so before or after. The backups are running about an hour later. Perhaps it's a user recompile statement...
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 3:07 PM
Points: 37,687,
Visits: 29,946
|
|
That's likely. Can you ask them to run a trace and make sure that there's nothing else running.
If need be, I can check with an ex-dev team member about CheckDB and schema versions, but would like to eliminate other possibilities first.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP 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
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 8:12 AM
Points: 275,
Visits: 679
|
|
Thanks again, I've disabled the daily dbcc checkdb, now running weekly, and we will see if this resolves the issue or not.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Saturday, September 18, 2010 5:29 AM
Points: 1,
Visits: 9
|
|
Hi guys, hi Jon :) I already mentioned it Jon, in SQL 2005 up to SP2 (or SP3) dbcc checkdb() flushes out procedure cache. It was fixed later, but frankly speaking I have already seen one bug on 2008 that was fixed on 2005.
Anyway, it seems that on 2008 schema version change happens way too often comparing with 2005 on the exactly,bit to bit same setup - it will be interesting to find why.
|
|
|
|