<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [SQL SMO Error] SQLServer DBCC CHECKDB failed in Data Protection</title>
    <link>https://community.netapp.com/t5/Data-Protection/SQL-SMO-Error-SQLServer-DBCC-CHECKDB-failed/m-p/144049#M12113</link>
    <description>&lt;DIV style="direction: ltr; border-width: 100%;"&gt;
&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.6041in;"&gt;
&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.6041in;"&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Hi,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;we're running on SQL Server 2012 SP4 on Windows Server 2012 R2 with SnapManager for SQL Server version 7.2.3.2841 and&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;our database backup / verification&amp;nbsp;fails every time for&amp;nbsp;&lt;SPAN style="text-decoration: underline;"&gt;one Database&lt;/SPAN&gt;&amp;nbsp;with about 2.5 TB:&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;The following lines are logged in the log file:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Attaching database [MyDatabase__Clone]...&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CREATE DATABASE [MyDatabase__Clone] ON PRIMARY&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;(NAME = 'MyDatabase', FILENAME = 'M:\MP\MPDisk001\MSSQL11.MSSQLSERVER\MSSQL\Data\MyDatabase_Data.mdf'),&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;(NAME = 'MyDatabase_Data_2', FILENAME = 'M:\MP\MPDisk001\MSSQL11.MSSQLSERVER\MSSQL\Data\MyDatabase_Data_2.ndf')&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;LOG ON&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;(NAME = 'MyDatabase_Log', FILENAME = 'M:\MP\MPDisk002\MSSQL11.MSSQLSERVER\MSSQL\Data\MyDatabase_Log.ldf') FOR ATTACH&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Database attached.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;DBCC CHECKDB (N'MyDatabase__Clone') WITH NO_INFOMSGS, PHYSICAL_ONLY&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;6 hours later...&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;[SQL SMO Error]: An exception occurred while executing a Transact-SQL statement or batch.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Timeout abgelaufen. Das Zeitlimit wurde vor dem Beenden des Vorgangs überschritten oder der Server reagiert nicht.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Der Wartevorgang wurde abgebrochen&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;&lt;SPAN style="font-weight: bold;"&gt;WARNING: SQLServer DBCC CHECKDB failed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Maybe&amp;nbsp;the following&amp;nbsp;lines in debug log can help:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;I enabled debug logging and found the following lines before DBCC starts&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CSnapMgrSqlBase::AttachDatabasesByTSQL_SMO() - Finished hr = 0x0&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CSnapMgrSqlBase::AlterDatabaseAutoshrinkOFF_SMO(MyDatabase__Clone) start&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CSnapMgrSqlBase::AlterDatabaseAutoshrinkOFF_SMO() return hr = 0x0&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CSnapMgrSqlBase::DmoAttachDatabase_SMO() - Finished hr = 0x0&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CNtapSqlVerify::AttachDatabaseThenDBCC4 - Calling RunSQLCmdDBCC2&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CSnapMgrSqlBase::RunSQLCmdDBCC2_SMO - Started&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;&lt;SPAN style="font-weight: bold;"&gt;m_dwSmoStatementTimeout: 10800&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;I guess that's 180min / 3hours which&amp;nbsp;doesn't describe the error after 6 hours, but since the original error message says [SQL SMO ERROR] it may be related.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Smaller databases within the same instance / on the same LUNs run without any problems (but&amp;nbsp;dbcc&amp;nbsp;finishes in less than 3 hours). Datafiles and Logfiles are located on different volumes and the source database instance is used for verification.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;We already increased the&amp;nbsp;&lt;SPAN style="font-weight: bold;"&gt;RemoteBackupThreadTimeout&amp;nbsp;&lt;/SPAN&gt;without any success (&lt;A href="https://community.netapp.com/t5/Data-Backup-and-Recovery-Discussions/SMSQL-remote-verification-timeout/td-p/42309" target="_blank"&gt;https://community.netapp.com/t5/Data-Backup-and-Recovery-Discussions/SMSQL-remote-verification-timeout/td-p/42309&lt;/A&gt;)&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Any ideas? Does someone know a way to increase the&amp;nbsp;&lt;SPAN style="font-weight: bold;"&gt;SmoStatementTimeout&lt;/SPAN&gt;? I couldn't find an option in GUI / registry / config files so far.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Thanks in advance!&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:12:21 GMT</pubDate>
    <dc:creator>x-gugi</dc:creator>
    <dc:date>2025-06-04T13:12:21Z</dc:date>
    <item>
      <title>[SQL SMO Error] SQLServer DBCC CHECKDB failed</title>
      <link>https://community.netapp.com/t5/Data-Protection/SQL-SMO-Error-SQLServer-DBCC-CHECKDB-failed/m-p/144049#M12113</link>
      <description>&lt;DIV style="direction: ltr; border-width: 100%;"&gt;
&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.6041in;"&gt;
&lt;DIV style="direction: ltr; margin-top: 0in; margin-left: 0in; width: 7.6041in;"&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Hi,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;we're running on SQL Server 2012 SP4 on Windows Server 2012 R2 with SnapManager for SQL Server version 7.2.3.2841 and&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;our database backup / verification&amp;nbsp;fails every time for&amp;nbsp;&lt;SPAN style="text-decoration: underline;"&gt;one Database&lt;/SPAN&gt;&amp;nbsp;with about 2.5 TB:&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;The following lines are logged in the log file:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Attaching database [MyDatabase__Clone]...&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CREATE DATABASE [MyDatabase__Clone] ON PRIMARY&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;(NAME = 'MyDatabase', FILENAME = 'M:\MP\MPDisk001\MSSQL11.MSSQLSERVER\MSSQL\Data\MyDatabase_Data.mdf'),&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;(NAME = 'MyDatabase_Data_2', FILENAME = 'M:\MP\MPDisk001\MSSQL11.MSSQLSERVER\MSSQL\Data\MyDatabase_Data_2.ndf')&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;LOG ON&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;(NAME = 'MyDatabase_Log', FILENAME = 'M:\MP\MPDisk002\MSSQL11.MSSQLSERVER\MSSQL\Data\MyDatabase_Log.ldf') FOR ATTACH&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Database attached.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;DBCC CHECKDB (N'MyDatabase__Clone') WITH NO_INFOMSGS, PHYSICAL_ONLY&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;6 hours later...&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;[SQL SMO Error]: An exception occurred while executing a Transact-SQL statement or batch.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Timeout abgelaufen. Das Zeitlimit wurde vor dem Beenden des Vorgangs überschritten oder der Server reagiert nicht.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Der Wartevorgang wurde abgebrochen&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;&lt;SPAN style="font-weight: bold;"&gt;WARNING: SQLServer DBCC CHECKDB failed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Maybe&amp;nbsp;the following&amp;nbsp;lines in debug log can help:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;I enabled debug logging and found the following lines before DBCC starts&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CSnapMgrSqlBase::AttachDatabasesByTSQL_SMO() - Finished hr = 0x0&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CSnapMgrSqlBase::AlterDatabaseAutoshrinkOFF_SMO(MyDatabase__Clone) start&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CSnapMgrSqlBase::AlterDatabaseAutoshrinkOFF_SMO() return hr = 0x0&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CSnapMgrSqlBase::DmoAttachDatabase_SMO() - Finished hr = 0x0&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CNtapSqlVerify::AttachDatabaseThenDBCC4 - Calling RunSQLCmdDBCC2&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;CSnapMgrSqlBase::RunSQLCmdDBCC2_SMO - Started&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;&lt;SPAN style="font-weight: bold;"&gt;m_dwSmoStatementTimeout: 10800&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;I guess that's 180min / 3hours which&amp;nbsp;doesn't describe the error after 6 hours, but since the original error message says [SQL SMO ERROR] it may be related.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Smaller databases within the same instance / on the same LUNs run without any problems (but&amp;nbsp;dbcc&amp;nbsp;finishes in less than 3 hours). Datafiles and Logfiles are located on different volumes and the source database instance is used for verification.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;We already increased the&amp;nbsp;&lt;SPAN style="font-weight: bold;"&gt;RemoteBackupThreadTimeout&amp;nbsp;&lt;/SPAN&gt;without any success (&lt;A href="https://community.netapp.com/t5/Data-Backup-and-Recovery-Discussions/SMSQL-remote-verification-timeout/td-p/42309" target="_blank"&gt;https://community.netapp.com/t5/Data-Backup-and-Recovery-Discussions/SMSQL-remote-verification-timeout/td-p/42309&lt;/A&gt;)&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Any ideas? Does someone know a way to increase the&amp;nbsp;&lt;SPAN style="font-weight: bold;"&gt;SmoStatementTimeout&lt;/SPAN&gt;? I couldn't find an option in GUI / registry / config files so far.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #3e3e3e;"&gt;Thanks in advance!&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:12:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SQL-SMO-Error-SQLServer-DBCC-CHECKDB-failed/m-p/144049#M12113</guid>
      <dc:creator>x-gugi</dc:creator>
      <dc:date>2025-06-04T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: [SQL SMO Error] SQLServer DBCC CHECKDB failed</title>
      <link>https://community.netapp.com/t5/Data-Protection/SQL-SMO-Error-SQLServer-DBCC-CHECKDB-failed/m-p/144084#M12118</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why did you change the&amp;nbsp; RemoteBackupTreadTimeout if what is failing (timing out) is the verification and not the remote backup?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So please Perform the following procedure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- Check if manual DBCC Check can be performed successfully and how long it takes. (the steps to do that are the same you have in&amp;nbsp;&amp;nbsp; the logs above..)&lt;/P&gt;
&lt;P&gt;2- Be sure that you are using latest 7.2.2p1 SMSQL version&lt;/P&gt;
&lt;P&gt;3- Make a copy of windows registry.&lt;/P&gt;
&lt;P&gt;4- Navigate to: HKEY_LOCAL_MACHINE/SOFTWARE/Network Appliance/SnapManager for SQL Server/Server/&lt;/P&gt;
&lt;P&gt;5- Create a DWORD named &lt;STRONG&gt;SmoStatementTimeout&lt;/STRONG&gt; Change the value in decimal to relevant timeout (in seconds)&lt;/P&gt;
&lt;P&gt;6- Restart SMSQL service.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let us know&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 13:53:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SQL-SMO-Error-SQLServer-DBCC-CHECKDB-failed/m-p/144084#M12118</guid>
      <dc:creator>matte</dc:creator>
      <dc:date>2018-10-19T13:53:42Z</dc:date>
    </item>
  </channel>
</rss>

