<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Standard solutions to random problems</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/john_daskalakis/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/john_daskalakis/feed.xml</link>
    <description>by John Daskalakis</description>
    <lastBuildDate>Sat, 11 Apr 2015 12:12:55 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Server TCP provider failed to listen on [IP Address]. Tcp port is already in use.</title>
      <link>https://docs.microsoft.com/archive/blogs/john_daskalakis/server-tcp-provider-failed-to-listen-on-ip-address-tcp-port-is-already-in-use</link>
      <pubDate>Mon, 08 Dec 2014 03:01:42 GMT</pubDate>
      <dc:creator><![CDATA[JohnDask]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/john_daskalakis/2014/12/08/server-tcp-provider-failed-to-listen-on-ip-address-tcp-port-is-already-in-use/</guid>
      <description><![CDATA[Consider the following scenario:
You try to start the SQL Server service at a cluster node or at a...]]></description>
      <content:encoded><![CDATA[<p>Consider the following scenario:</p>
<p>You try to start the SQL Server service at a cluster node or at a standalone machine, after the SQL Server service was stopped.</p>
<p>The service fails to start and you see these messages or similar ones logged in the ERRORLOG:</p>
<p><strong><span style="color: #ff0000;">Server TCP provider failed to listen on [IP Address]. Tcp port is already in use.</span></strong></p>
<p><strong><span style="color: #ff0000;">TDSSNIClient initialization failed with error 0x271d, status code 0xa. Reason: Unable to initialize the TCP/IP listener. An attempt was made to access a socket in a way forbidden by its access permissions.</span></strong></p>
<p><strong><span style="color: #ff0000;">TDSSNIClient initialization failed with error 0x271d, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. An attempt was made to access a socket in a way forbidden by its access permissions.</span></strong></p>
<p><strong><span style="color: #ff0000;">Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.</span></strong></p>
<p><strong><span style="color: #ff0000;">SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.</span></strong></p>
<p>These messages indicate that the port of SQL Server is used by another process.</p>
<p>So you collect a netstat output to see which ports are used by which application (default port for SQL Server is 1433):</p>
<p><strong><span style="color: #0000ff;">netstat -a -n -b</span></strong></p>
<p>and you see that the 1433 port is used by a process running at a remote machine (remote IP address):</p>
<p><strong><span style="color: #0000ff;">Local Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Foreign Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State</span></strong></p>
<p><strong><span style="color: #0000ff;">TCP&nbsp;&nbsp;&nbsp; </span></strong><br /><strong><span style="color: #0000ff;">0.0.0.0:1433&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LISTENING</span></strong></p>
<p><strong><span style="color: #0000ff;">[services.exe]</span></strong></p>
<p><strong><span style="color: #0000ff;">TCP&nbsp;&nbsp;&nbsp; </span></strong></p>
<p><strong><span style="color: #0000ff;">[IP Address]:1433&nbsp;&nbsp;&nbsp;&nbsp; [IP Address]:Port&nbsp;&nbsp; ESTABLISHED</span></strong></p>
<p><strong><span style="color: #0000ff;">[services.exe]</span></strong></p>
<p>After&nbsp;logging on to the remote machine and killing these sessions, the SQL Server service can start without errors.</p>
<p>The root cause for this scenario is that another application or service has taken control of the port before SQL Server starts. In this case it was the services console. Although port 1433 is reserved for use by SQL Server, Winsock applications may still use random ports above 1024 and therefore may happen to bind to port 1433. Obviously this is a very rare occurrence and the stars must be properly aligned for this issue to affect your environment.</p>
<p>To avoid this kind of issue, you may Bind the Port to certain IP address:</p>
<p><a href="https://technet.microsoft.com/en-us/library/cc771629.aspx">https://technet.microsoft.com/en-us/library/cc771629.aspx</a></p>
<p><a href="https://msdn.microsoft.com/en-us/library/bb909657(v=vs.90).aspx">https://msdn.microsoft.com/en-us/library/bb909657(v=vs.90).aspx</a></p>
<p>&nbsp;To get more information how to bind the port, you should contact your Network administrator.</p>]]></content:encoded>
    </item>
    <item>
      <title>Is it safe or supported to remove the local security groups that the SQL Server setup creates (SQLServer2005MSSQLUser$&lt;computer name&gt;$MSSQLSERVER) ?</title>
      <link>https://docs.microsoft.com/archive/blogs/john_daskalakis/is-it-safe-or-supported-to-remove-the-local-security-groups-that-the-sql-server-setup-creates-sqlserver2005mssqlusercomputer-namemssqlserver</link>
      <pubDate>Sun, 30 Nov 2014 23:50:01 GMT</pubDate>
      <dc:creator><![CDATA[JohnDask]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/john_daskalakis/2014/11/30/is-it-safe-or-supported-to-remove-the-local-security-groups-that-the-sql-server-setup-creates-sqlserver2005mssqlusercomputer-namemssqlserver/</guid>
      <description><![CDATA[When the SQL Server setup is ran, it creates some local groups of the following...]]></description>
      <content:encoded><![CDATA[<p>When the SQL Server setup is ran, it creates some local groups of the following format:</p>
<p>SQLServer2005MSSQLUser$&lt;computer name&gt;$MSSQLSERVER</p>
<p>These groups are part of the product and should not be deleted:</p>
<p>- <a href="https://msdn.microsoft.com/en-us/library/ms143504(v=sql.90).aspx">Reviewing Windows NT Rights and Privileges Granted for SQL Server Service Accounts</a></p>
<p>Deleting them renders the product unsupported and part of the functionality is lost. Plus, it poses a security risk.</p>
<p>Specifically, after deleting these groups, it is no longer possible to install updates and Service Packs to the SQL Server product:</p>
<p>- <a href="https://support.microsoft.com/kb/957008">SQL Server 2005 Service Pack 2 is not successfully updated when you try to install or to uninstall a security update</a></p>
<p>- <a href="https://support.microsoft.com/kb/925976">Error message when you try to install a SQL Server 2005 service pack or a SQL Server 2005 hotfix package: "Error 29528. The setup has encountered an unexpected error while Setting Internal Properties"</a></p>
<p>So, to summarize, it is neither safe nor supported to delete these groups.</p>]]></content:encoded>
    </item>
    <item>
      <title>TEMPDB files fail to be created with error: "CREATE FILE encountered operating system error 32"</title>
      <link>https://docs.microsoft.com/archive/blogs/john_daskalakis/tempdb-files-fail-to-be-created-with-error-create-file-encountered-operating-system-error-32</link>
      <pubDate>Fri, 28 Nov 2014 10:59:35 GMT</pubDate>
      <dc:creator><![CDATA[JohnDask]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/john_daskalakis/2014/11/28/tempdb-files-fail-to-be-created-with-error-create-file-encountered-operating-system-error-32/</guid>
      <description><![CDATA[The TEMPDB database is a unique database, as its files are deleted and recreated every time you...]]></description>
      <content:encoded><![CDATA[<p>The TEMPDB database is a unique database, as its files are deleted and recreated every time you restart the SQL Server services.</p>
<p>If all the files of TEMPDB fail to be recreated for some reason, the SQL Server service won't be able to start.</p>
<p>In a specific scenario, the error we saw was:</p>
<p><span style="color: #ff0000;">CREATE FILE encountered operating system error 32(The process cannot access the file because it is being used by another process.) while attempting to open or create the physical file '&lt;folder\tempdb.mdf&gt;'</span></p>
<p>Some common root causes for this error are:</p>
<p><strong>[1]</strong></p>
<p>Antivirus exclusions have not been set correctly at the machine that is running the SQL Server service.</p>
<p>The exclusions are documented here: <a href="https://support.microsoft.com/kb/309422">How to choose antivirus software to run on computers that are running SQL Server</a></p>
<p><strong>[2]</strong></p>
<p>There is another process "touching" the TEMPDB files, like a backup application or another instance of the SQL Server service.</p>
<p>To check this possibility you can use the <a href="https://technet.microsoft.com/en-us/sysinternals/bb896653.aspx">Process Explorer </a>tool to see which processes have locks at the TEMPDB&nbsp;files.</p>
<p><strong>[3]</strong></p>
<p>The metadata of the TEMPDB database are mixed and there exist multiple TEMPDB files that have different logical names but they use the&nbsp;same physical name.</p>
<p>To check this possibility, you can run these two queries and check if some of the files have the same physical name:</p>
<p><span style="color: #0000ff;">SELECT name, physical_name from sys.master_files</span></p>
<p><span style="color: #0000ff;">SELECT name, filename from sysaltfiles</span></p>
<p>In this scenario, if you capture a Process Monitor trace, you will see a "<span style="color: #ff0000;">SHARING VIOLATION</span>" event regarding the sqlservr.exe process.</p>
<p>To address this issue, you can simply change the location of the physical files so that they are created at different locations on the disk, with different names and they do not collide.</p>
<p>e.g.</p>
<p><span style="color: #0000ff;">USE master;</span></p>
<p><span style="color: #0000ff;">GO</span></p>
<p><span style="color: #0000ff;">ALTER DATABASE tempdb</span></p>
<p><span style="color: #0000ff;">MODIFY FILE (NAME = tempdev, FILENAME = 'M:\TEMPDB\tempdb.mdf');</span></p>
<p><span style="color: #0000ff;">GO</span></p>
<p><span style="color: #0000ff;">ALTER DATABASE tempdb</span></p>
<p><span style="color: #0000ff;">MODIFY FILE (NAME = templog, FILENAME = 'M:\TEMPDB\templog.ldf');</span></p>
<p><span style="color: #0000ff;">GO</span></p>]]></content:encoded>
    </item>
    <item>
      <title>Does the CRM database and application support the SNAPSHOT isolation level?</title>
      <link>https://docs.microsoft.com/archive/blogs/john_daskalakis/does-the-crm-database-and-application-support-the-snapshot-isolation-level</link>
      <pubDate>Fri, 21 Nov 2014 03:59:23 GMT</pubDate>
      <dc:creator><![CDATA[JohnDask]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/john_daskalakis/2014/11/21/does-the-crm-database-and-application-support-the-snapshot-isolation-level/</guid>
      <description><![CDATA[This is a very interesting question that for some reason has not been documented in the Official CRM...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;">This is a very interesting question that for some reason has not been documented in the Official CRM documentation.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;">To give a short reply: <strong>YES, IT IS SUPPORTED</strong></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;">The longer reply is:</span></p>
<p><span style="font-size: small;"></span><span style="font-size: small;">T</span><span style="font-size: small;">he default isolation level of a SQL Server database is READ COMMITTED:</span></p>
<p><span style="font-size: small;"><a href="https://blogs.msdn.com/b/sqlcat/archive/2011/02/20/concurrency-series-basics-of-transaction-isolation-levels.aspx">SQL Server Customer Advisory Team Blog - Concurrency Series: Basics of Transaction Isolation Levels</a></span></p>
<p><span style="font-size: small;">But this isolation level will cause blocking between some CRM processes and deadlocks in some cases (e.g. when processes try to SELECT data and UPDATE data at the same table). </span></p>
<p><span style="font-size: small;">So what the CRM Support team usually suggests in some of these issues </span><span style="font-size: small;">is to enable the SNAPSHOT isolation level for the CRM database.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;">More details about the Pros/Cons of this isolation level and how to enable it can be found in this blog post from Ritesh Ranjan:</span></p>
<p><span style="font-size: small;"><a href="https://blogs.msdn.com/b/ritesh_ranjan/archive/2014/09/12/sql-read-committed-snapshot-isolation-and-dynamics-crm.aspx">https://blogs.msdn.com/b/ritesh_ranjan/archive/2014/09/12/sql-read-committed-snapshot-isolation-and-dynamics-crm.aspx</a></span></p>
<p><span style="font-size: small;"></span></p>]]></content:encoded>
    </item>
    <item>
      <title>Script to export the configuration of SQL Server</title>
      <link>https://docs.microsoft.com/archive/blogs/john_daskalakis/script-to-export-the-configuration-of-sql-server</link>
      <pubDate>Mon, 27 Oct 2014 05:01:24 GMT</pubDate>
      <dc:creator><![CDATA[JohnDask]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/john_daskalakis/2014/10/27/script-to-export-the-configuration-of-sql-server/</guid>
      <description><![CDATA[Recently I was asked to write a script that would export (or backup)&nbsp;as much configuration...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: medium;">Recently I was asked to write a script that would export (or backup)&nbsp;as much configuration information from a SQL Server instance as possible. </span></p>
<p><span style="font-size: medium;">This is handy when migrating a SQL Server instance to a new environment and serves as a checklist.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: medium;">The result was the following script, that exports:</span></p>
<p><span style="font-size: medium;">- The instance name of SQL Server</span></p>
<p><span style="font-size: medium;">- The Version, Platform and Build of the SQL Server instance</span></p>
<p><span style="font-size: medium;">- The server-level configuration (SP_CONFIGURE)</span></p>
<p><span style="font-size: medium;">- Information about the attached databases and their database files</span></p>
<p><span style="font-size: medium;">- The server logins</span></p>
<p><span style="font-size: medium;">- The permissions of the users for each database</span></p>
<p><span style="font-size: medium;">- Information about saved Credentials</span></p>
<p><span style="font-size: medium;">- Information about Server Backup Devices</span></p>
<p><span style="font-size: medium;">- Information about System and Mirroring endpoints</span></p>
<p><span style="font-size: medium;">- Information about Linked Servers</span></p>
<p><span style="font-size: medium;">- Information about Logon triggers</span></p>
<p><span style="font-size: medium;">- Information about Publications and Subscriptions</span></p>
<p><span style="font-size: medium;">- Information about SQL Server Agent jobs</span></p>
<p><span style="font-size: medium;">- Information about SQL Server Alerts</span></p>
<p><span style="font-size: medium;">- Information about SQL Server Operators</span></p>
<p><span style="font-size: medium;">- Information about the SSIS packages that are stored in MSDB</span></p>
<p>&nbsp;</p>
<p><span style="font-size: medium;">The script:</span></p>
<p>&nbsp;</p>
<p><span style="color: #0000ff; font-size: small;">USE master</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;SQL Server Instance Name&gt;'</span><br /><span style="color: #0000ff; font-size: small;">SELECT @@SERVERNAME</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;SQL Server Version, Edition and Build&gt;'</span><br /><span style="color: #0000ff; font-size: small;">SELECT @@VERSION</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;The server wide configuration&gt;'</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #0000ff; font-size: small;">SP_CONFIGURE 'show advanced options',1</span><br /><span style="color: #0000ff; font-size: small;">reconfigure with override</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #0000ff; font-size: small;">sp_configure</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #0000ff; font-size: small;">SP_CONFIGURE 'show advanced options',0</span><br /><span style="color: #0000ff; font-size: small;">reconfigure with override</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;List of Attached Databases&gt;'</span><br /><span style="color: #0000ff; font-size: small;">SELECT name as Database_Name, dbid as Database_ID, cmptlevel as Database_Compatibility_Level, filename as Database_MDF_Location from SYSDATABASES</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;Information for all the databases and their files&gt;'</span><br /><span style="color: #0000ff; font-size: small;">SET NOCOUNT ON</span><br /><span style="color: #0000ff; font-size: small;">IF (object_id( 'tempdb..#TMPFIXEDDRIVES' ) IS NOT NULL) DROP TABLE #TMPFIXEDDRIVES</span><br /><span style="color: #0000ff; font-size: small;">IF (object_id( 'tempdb..#TMPSPACEUSED' ) IS NOT NULL) DROP TABLE #TMPSPACEUSED</span><br /><span style="color: #0000ff; font-size: small;">IF (object_id( 'tempdb..#HDB' ) IS NOT NULL) DROP TABLE #HDB</span><br /><span style="color: #0000ff; font-size: small;">CREATE TABLE #TMPFIXEDDRIVES (DRIVE CHAR(1), MBFREE INT) </span><br /><span style="color: #0000ff; font-size: small;">INSERT INTO #TMPFIXEDDRIVES </span><br /><span style="color: #0000ff; font-size: small;">EXEC xp_FIXEDDRIVES </span><br /><span style="color: #0000ff; font-size: small;">CREATE TABLE #TMPSPACEUSED (DBNAME VARCHAR(255), FILEID INT,FILENME VARCHAR(255), SPACEUSED FLOAT) </span><br /><span style="color: #0000ff; font-size: small;">CREATE TABLE #HDB (name sysname not null,db_size varchar(25) not null,owner varchar(40) not null,dbid int not null,created smalldatetime not null,status varchar(500) not null,compatibility_level int not null)</span><br /><span style="color: #0000ff; font-size: small;">INSERT INTO #HDB exec sp_helpdb;</span><br /><span style="color: #0000ff; font-size: small;">INSERT INTO #TMPSPACEUSED </span><br /><span style="color: #0000ff; font-size: small;">EXEC( 'sp_msforeachdb''use [?]; Select ''''?'''' DBName,fileid, Name FileNme, fileproperty(Name,''''SpaceUsed'''') SpaceUsed from sysfiles''') </span><br /><span style="color: #0000ff; font-size: small;">SELECT @@servername as SQLServerInstance, A.Database_id as Database_ID,A.NAME AS Database_Name,</span><br /><span style="color: #0000ff; font-size: small;">CASE D.FILEID WHEN 1 THEN ltrim(XX.db_size) ELSE NULL END as Database_Size ,CASE D.FILEID&nbsp; WHEN 1 THEN XX.owner ELSE NULL END as Database_Owner,</span><br /><span style="color: #0000ff; font-size: small;">CASE D.FILEID WHEN 1 THEN XX.created ELSE NULL END as Database_Creation_Date ,C.DRIVE, C.MBFREE AS Free_Space_of_the_Disk, D.FILEID as Database_File_ID, B.NAME AS Database_Filename, </span><br /><span style="color: #0000ff; font-size: small;">CASE B.TYPE WHEN 0 THEN 'DATA' ELSE TYPE_DESC END AS FILETYPE, (B.SIZE * 8 / 1024)AS FILESIZE_MB, ROUND((B.SIZE * 8 / 1024) - (D.SPACEUSED / 128),2) as SPACEFREE_MB,</span><br /><span style="color: #0000ff; font-size: small;">ROUND(100-((((B.SIZE * 8 / 1024) - (D.SPACEUSED / 128))*100)/ CASE(B.SIZE * 8 / 1024) WHEN 0 THEN 1 ELSE (B.SIZE * 8 / 1024)&nbsp; END ),2) as [%USED], b.size,</span><br /><span style="color: #0000ff; font-size: small;">b.max_size, b.growth, b.is_percent_growth, B.PHYSICAL_NAME, CASE B.TYPE WHEN 0 THEN A.recovery_model_desc ELSE NULL END AS [Recovery_Model], </span><br /><span style="color: #0000ff; font-size: small;">CASE B.TYPE WHEN 0 THEN A.compatibility_level ELSE NULL END AS [Compatibility_Level] ,CASE D.FILEID WHEN 1 THEN BR.last_backup_finish_date </span><br /><span style="color: #0000ff; font-size: small;">ELSE NULL END as [Backup],CASE D.FILEID&nbsp; WHEN 1 THEN BR.last_TRLog_backup_finish_date ELSE NULL&nbsp; END as TRBackup ,CASE D.FILEID </span><br /><span style="color: #0000ff; font-size: small;">WHEN 1 THEN BR.last_restore_date ELSE NULL END as [Restore],&nbsp; DM.mirroring_role_desc+'('+DM.mirroring_state_desc+')' as DBMirror_Info</span><br /><span style="color: #0000ff; font-size: small;">FROM SYS.DATABASES A&nbsp; </span><br /><span style="color: #0000ff; font-size: small;">INNER JOIN SYS.MASTER_FILES B ON A.DATABASE_ID = B.DATABASE_ID </span><br /><span style="color: #0000ff; font-size: small;">INNER JOIN #TMPFIXEDDRIVES C ON LEFT(B.PHYSICAL_NAME,1) = C.DRIVE </span><br /><span style="color: #0000ff; font-size: small;">INNER JOIN #TMPSPACEUSED D ON A.NAME = D.DBNAME AND B.NAME = D.FILENME </span><br /><span style="color: #0000ff; font-size: small;">INNER JOIN #HDB XX on XX.dbid= A.Database_id </span><br /><span style="color: #0000ff; font-size: small;">INNER JOIN (SELECT D.database_id,B.last_backup_finish_date,TR.last_TRLog_backup_finish_date,R.last_restore_date</span><br /><span style="color: #0000ff; font-size: small;">FROM sys.databases D</span><br /><span style="color: #0000ff; font-size: small;">LEFT JOIN (SELECT BS.database_name ,max(BS.backup_finish_date) as last_backup_finish_date FROM msdb.dbo.backupset BS (NOLOCK)</span><br /><span style="color: #0000ff; font-size: small;">INNER JOIN msdb.dbo.backupmediafamily MF(NOLOCK) ON BS.media_set_id = MF.media_set_id </span><br /><span style="color: #0000ff; font-size: small;">WHERE&nbsp; BS.backup_start_date &gt;= CAST(CONVERT(varchar(10),dateadd(mm,-3,getdate()),120) AS datetime)</span><br /><span style="color: #0000ff; font-size: small;">AND BS.server_name = @@servername and BS.type='D'</span><br /><span style="color: #0000ff; font-size: small;">GROUP BY BS.database_name ) B on D.name=B.database_name LEFT JOIN (SELECT BS.database_name ,max(BS.backup_finish_date) as last_TRLog_backup_finish_date </span><br /><span style="color: #0000ff; font-size: small;">FROM&nbsp; msdb.dbo.backupset BS (NOLOCK) INNER JOIN msdb.dbo.backupmediafamily MF(NOLOCK) ON BS.media_set_id = MF.media_set_id</span><br /><span style="color: #0000ff; font-size: small;">WHERE BS.backup_start_date &gt;= CAST(CONVERT(varchar(10),dateadd(mm,-1,getdate()),120) AS datetime) AND BS.server_name = @@servername and BS.type='L'</span><br /><span style="color: #0000ff; font-size: small;">GROUP BY BS.database_name) TR on D.name=TR.database_name </span><br /><span style="color: #0000ff; font-size: small;">LEFT JOIN (SELECT rh.destination_database_name, max(rh.restore_date) as last_restore_date FROM msdb.dbo.restorehistory rh (NOLOCK)</span><br /><span style="color: #0000ff; font-size: small;">INNER JOIN msdb.dbo.backupset BS (NOLOCK) ON rh.backup_set_id=BS.backup_set_id</span><br /><span style="color: #0000ff; font-size: small;">WHERE BS.type= 'D' AND RH.restore_date &gt;=CAST(CONVERT(varchar(10),dateadd(mm,-3,getdate()),120) AS datetime)</span><br /><span style="color: #0000ff; font-size: small;">GROUP BY rh.destination_database_name) R on D.name=R.destination_database_name) BR on A.Database_id=BR.database_id</span><br /><span style="color: #0000ff; font-size: small;">LEFT JOIN msdb.sys.database_mirroring dm (nolock) on A.database_id=dm.database_id</span><br /><span style="color: #0000ff; font-size: small;">ORDER BY Database_Name</span><br /><span style="color: #0000ff; font-size: small;">IF (object_id( 'tempdb..#TMPFIXEDDRIVES' ) IS NOT NULL) DROP TABLE #TMPFIXEDDRIVES</span><br /><span style="color: #0000ff; font-size: small;">IF (object_id( 'tempdb..#TMPSPACEUSED' ) IS NOT NULL) DROP TABLE #TMPSPACEUSED</span><br /><span style="color: #0000ff; font-size: small;">IF (object_id( 'tempdb..#HDB' ) IS NOT NULL) DROP TABLE #HDB</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;Information for all the server logins&gt;'</span><br /><span style="color: #0000ff; font-size: small;">EXEC sp_helplogins</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;The permissions of the users for each database&gt;'</span><br /><span style="color: #0000ff; font-size: small;">DECLARE @DB_USers TABLE(DBName sysname, UserName sysname, LoginType sysname, AssociatedRole varchar(max),create_date datetime,modify_date datetime)</span><br /><span style="color: #0000ff; font-size: small;">INSERT @DB_USers EXEC sp_MSforeachdb'</span><br /><span style="color: #0000ff; font-size: small;">use [?]</span><br /><span style="color: #0000ff; font-size: small;">SELECT ''?'' AS DB_Name,</span><br /><span style="color: #0000ff; font-size: small;">case prin.name when ''dbo'' then prin.name + '' (''+ (select SUSER_SNAME(owner_sid) from master.sys.databases where name =''?'') + '')'' else prin.name end AS UserName,</span><br /><span style="color: #0000ff; font-size: small;">prin.type_desc AS LoginType,</span><br /><span style="color: #0000ff; font-size: small;">isnull(USER_NAME(mem.role_principal_id),'''') AS AssociatedRole ,create_date,modify_date</span><br /><span style="color: #0000ff; font-size: small;">FROM sys.database_principals prin</span><br /><span style="color: #0000ff; font-size: small;">LEFT OUTER JOIN sys.database_role_members mem ON prin.principal_id=mem.member_principal_id</span><br /><span style="color: #0000ff; font-size: small;">WHERE prin.sid IS NOT NULL and prin.sid NOT IN (0x00) and</span><br /><span style="color: #0000ff; font-size: small;">prin.is_fixed_role &lt;&gt; 1 AND prin.name NOT LIKE ''##%'''</span><br /><span style="color: #0000ff; font-size: small;">SELECT dbname,username ,logintype ,create_date ,modify_date ,STUFF((SELECT ',' + CONVERT(VARCHAR(500),associatedrole)</span><br /><span style="color: #0000ff; font-size: small;">FROM @DB_USers user2 WHERE user1.DBName=user2.DBName AND user1.UserName=user2.UserName FOR XML PATH('') ),1,1,'') AS Permissions_user</span><br /><span style="color: #0000ff; font-size: small;">FROM @DB_USers user1 GROUP BY dbname,username ,logintype ,create_date ,modify_date ORDER BY DBName,username</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;Script out any Credentials under Security&gt;'</span><br /><span style="color: #0000ff; font-size: small;">select&nbsp;&nbsp; 'CREATE CREDENTIAL ' + name + ' WITH IDENTITY = ''' + credential_identity + ''', SECRET = ''&lt;Put Password Here&gt;'';'&nbsp; from sys.credentials&nbsp; order by name;</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;List all Server Backup Devices&gt;'</span><br /><span style="color: #0000ff; font-size: small;">SELECT 'Server[@Name=' + quotename(CAST(serverproperty(N'Servername') AS sysname),'''') + ']' + '/BackupDevice[@Name=' + quotename(o.name,'''') + ']' AS [Urn],</span><br /><span style="color: #0000ff; font-size: small;">o.name AS [Name], case when 1=msdb.dbo.fn_syspolicy_is_automation_enabled() and exists (select * from msdb.dbo.syspolicy_system_health_state </span><br /><span style="color: #0000ff; font-size: small;">where target_query_expression_with_id like 'Server/BackupDevice\[@Name=' + QUOTENAME(o.name, '''') + '\]%' ESCAPE '\') then 1 else 0 end AS [PolicyHealthState] </span><br /><span style="color: #0000ff; font-size: small;">FROM sys.backup_devices o ORDER BY [Name] ASC</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;List all System and Mirroring endpoints&gt;'</span><br /><span style="color: #0000ff; font-size: small;">select * from sys.endpoints </span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;List all Linked Servers and their associated login&gt;'</span><br /><span style="color: #0000ff; font-size: small;">SELECT ss.server_id ,ss.name ,'Server ' = Case ss.Server_id&nbsp;&nbsp; when 0 then 'Current Server'&nbsp;&nbsp; else 'Remote Server'&nbsp;&nbsp; end</span><br /><span style="color: #0000ff; font-size: small;">,ss.product&nbsp;&nbsp; ,ss.provider&nbsp; ,ss.catalog&nbsp; ,'Local Login ' = case sl.uses_self_credential&nbsp;&nbsp; when 1 then 'Uses Self Credentials'</span><br /><span style="color: #0000ff; font-size: small;">else ssp.name end ,'Remote Login Name' = sl.remote_name ,'RPC Out Enabled'&nbsp;&nbsp;&nbsp; = case ss.is_rpc_out_enabled when 1 then 'True'</span><br /><span style="color: #0000ff; font-size: small;">else 'False' end ,'Data Access Enabled' = case ss.is_data_access_enabled when 1 then 'True' else 'False' end</span><br /><span style="color: #0000ff; font-size: small;">,ss.modify_date FROM sys.Servers ss&nbsp; </span><br /><span style="color: #0000ff; font-size: small;">LEFT JOIN sys.linked_logins sl ON ss.server_id = sl.server_id</span><br /><span style="color: #0000ff; font-size: small;">LEFT JOIN sys.server_principals ssp ON ssp.principal_id = sl.local_principal_id</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;Script out the Logon Triggers of the server, if any exist&gt;'</span><br /><span style="color: #0000ff; font-size: small;">SELECT SSM.definition FROM sys.server_triggers AS ST JOIN sys.server_sql_modules AS SSM ON ST.object_id = SSM.object_id</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;REPLICATION - List Publication or Subscription articles&gt;'</span><br /><span style="color: #0000ff; font-size: small;">IF EXISTS (SELECT 1 </span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM INFORMATION_SCHEMA.TABLES </span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHERE TABLE_TYPE='BASE TABLE' </span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND TABLE_NAME='sysextendedarticlesview') </span><br /><span style="color: #0000ff; font-size: small;">(SELECT&nbsp; sub.srvname,&nbsp; pub.name, art.name, art.dest_table,art.dest_owner</span><br /><span style="color: #0000ff; font-size: small;">FROM sysextendedarticlesview art</span><br /><span style="color: #0000ff; font-size: small;">inner join syspublications pub on (art.pubid = pub.pubid)</span><br /><span style="color: #0000ff; font-size: small;">inner join syssubscriptions sub on (sub.artid = art.artid))</span><br /><span style="color: #0000ff; font-size: small;">ELSE SELECT 'No Publication or Subcsription articles were found'</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;List all SQL Server Agent jobs&gt;'</span><br /><span style="color: #0000ff; font-size: small;">USE MSDB</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #0000ff; font-size: small;">SELECT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srv.srvname,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sj.name,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COALESCE(sj.description, ''),</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ss.name,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ss.schedule_id,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sc.name,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ss.freq_type,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ss.freq_interval,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ss.freq_subday_type,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ss.freq_subday_interval,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ss.freq_relative_interval,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ss.freq_recurrence_factor,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COALESCE(STR(ss.active_start_date, 8), CONVERT(CHAR(8), GETDATE(), 112)),</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STUFF(STUFF(REPLACE(STR(ss.active_start_time, 6), ' ', '0'), 3, 0, ':'), 6, 0, ':'),</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STR(ss.active_end_date, 8),</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STUFF(STUFF(REPLACE(STR(ss.active_end_time, 6), ' ', '0'), 3, 0, ':'), 6, 0, ':'),</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sj.enabled,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ss.enabled</span><br /><span style="color: #0000ff; font-size: small;">FROM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; msdb..sysschedules AS ss</span><br /><span style="color: #0000ff; font-size: small;">INNER JOIN&nbsp;&nbsp;&nbsp; msdb..sysjobschedules AS sjs ON sjs.schedule_id = ss.schedule_id</span><br /><span style="color: #0000ff; font-size: small;">INNER JOIN&nbsp;&nbsp;&nbsp; msdb..sysjobs AS sj ON sj.job_id = sjs.job_id</span><br /><span style="color: #0000ff; font-size: small;">INNER JOIN&nbsp;&nbsp;&nbsp; sys.sysservers AS srv ON srv.srvid = sj.originating_server_id</span><br /><span style="color: #0000ff; font-size: small;">INNER JOIN&nbsp;&nbsp;&nbsp; msdb..syscategories AS sc ON sc.category_id = sj.category_id</span><br /><span style="color: #0000ff; font-size: small;">WHERE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ss.freq_type IN(1, 4, 8, 16, 32)</span><br /><span style="color: #0000ff; font-size: small;">ORDER BY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srv.srvname,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sj.name,</span><br /><span style="color: #0000ff; font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ss.name</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #0000ff; font-size: small;">USE master</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;List of SQL Server Agent - Alerts&gt;'</span><br /><span style="color: #0000ff; font-size: small;">select * from&nbsp; msdb.dbo.sysalerts </span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;List of SQL Server Agent - Operators&gt;'</span><br /><span style="color: #0000ff; font-size: small;">SELECT name, email_address, enabled FROM MSDB.dbo.sysoperators ORDER BY name</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '&lt;List of SSIS packages in MSDB&gt;'</span><br /><span style="color: #0000ff; font-size: small;">USE MSDB</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #0000ff; font-size: small;">select name, description, createdate from sysssispackages where description not like 'System Data Collector Package'</span><br /><span style="color: #0000ff; font-size: small;">USE master</span><br /><span style="color: #0000ff; font-size: small;">GO</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span><br /><span style="color: #339966; font-size: small;">PRINT '*******************************************************************************************'</span></p>]]></content:encoded>
    </item>
    <item>
      <title>The server could not load the certificate it needs to initiate an SSL connection. It returned the following error: 0x8009030d. Check certificates to make sure they are valid.</title>
      <link>https://docs.microsoft.com/archive/blogs/john_daskalakis/the-server-could-not-load-the-certificate-it-needs-to-initiate-an-ssl-connection-it-returned-the-following-error-0x8009030d-check-certificates-to-make-sure-they-are-valid</link>
      <pubDate>Wed, 15 Oct 2014 03:09:04 GMT</pubDate>
      <dc:creator><![CDATA[JohnDask]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/john_daskalakis/2014/10/15/the-server-could-not-load-the-certificate-it-needs-to-initiate-an-ssl-connection-it-returned-the-following-error-0x8009030d-check-certificates-to-make-sure-they-are-valid/</guid>
      <description><![CDATA[This time I came across a certificate error, that was stopping the SQL Server service from...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">This time I came across a certificate error, that was stopping the SQL Server service from starting:<br /></span></p>
<p><span style="color: #ff0000; font-family: arial,helvetica,sans-serif; font-size: medium;">The server could not load the certificate it needs to initiate an SSL connection. It returned the following error: 0x8009030d. Check certificates to make sure they are valid.</span><br /><span style="color: #ff0000; font-family: arial,helvetica,sans-serif; font-size: medium;">Error: 26014, Severity: 16, State: 1.</span><br /><span style="color: #ff0000; font-family: arial,helvetica,sans-serif; font-size: medium;">Unable to load user-specified certificate The server will not accept a connection. You should verify that the certificate is correctly installed. See "Configuring Certificate for Use by SSL" in Books Online.</span><br /><span style="color: #ff0000; font-family: arial,helvetica,sans-serif; font-size: medium;">2014-10-15 09:44:12.23 Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Error: 17182, Severity: 16, State: 1.</span><br /><span style="color: #ff0000; font-family: arial,helvetica,sans-serif; font-size: medium;">2014-10-15 09:44:12.23 Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.</span><br /><span style="color: #ff0000; font-family: arial,helvetica,sans-serif; font-size: medium;">2014-10-15 09:44:12.23 Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Error: 17182, Severity: 16, State: 1.</span><br /><span style="color: #ff0000; font-family: arial,helvetica,sans-serif; font-size: medium;">2014-10-15 09:44:12.23 Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property.</span><br /><span style="color: #ff0000; font-family: arial,helvetica,sans-serif; font-size: medium;">2014-10-15 09:44:12.23 Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Error: 17826, Severity: 18, State: 3.</span><br /><span style="color: #ff0000; font-family: arial,helvetica,sans-serif; font-size: medium;">2014-10-15 09:44:12.23 Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.</span><br /><span style="color: #ff0000; font-family: arial,helvetica,sans-serif; font-size: medium;">2014-10-15 09:44:12.23 Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Error: 17120, Severity: 16, State: 1.</span><br /><span style="color: #ff0000; font-family: arial,helvetica,sans-serif; font-size: medium;">2014-10-15 09:44:12.23 Server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">The critical question as always is what was the last change before the error started occurring.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">Fortunately the DBA was willing to share this information. Usually nobody remembers if they did any changes at all :S</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">The last change was that the SQL Server service account had been removed from the Local Admins group.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">BINGO! A permissions issue!</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">A Process Monitor trace captured from the reproduction of the issue showed clear access denied events at these folders and registry keys:</span></p>
<p><span style="color: #0000ff;"><span style="font-family: arial,helvetica,sans-serif; font-size: medium;"></span><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\</span></span><br /><span style="color: #0000ff; font-family: arial,helvetica,sans-serif; font-size: medium;">C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys</span><br /><span style="color: #0000ff; font-family: arial,helvetica,sans-serif; font-size: medium;">HKLM\System\CurrentControlSet\Services\WinSock2\Parameters</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">Adding Full Control permissions for the SQL Server service account at these locations solved the certificates errors.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;">Long live the Process Monitor tool! :)</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: medium;"></span></p>]]></content:encoded>
    </item>
    <item>
      <title>Msg 2547, Sev 16, State 1 - Unable to process object ID X (object "Y") because it is a synonym</title>
      <link>https://docs.microsoft.com/archive/blogs/john_daskalakis/msg-2547-sev-16-state-1-unable-to-process-object-id-x-object-y-because-it-is-a-synonym</link>
      <pubDate>Wed, 15 Oct 2014 02:57:38 GMT</pubDate>
      <dc:creator><![CDATA[JohnDask]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/john_daskalakis/2014/10/15/msg-2547-sev-16-state-1-unable-to-process-object-id-x-object-y-because-it-is-a-synonym/</guid>
      <description><![CDATA[This is a really exotic error! 
It happened during an Index Rebuild operation of a CRM database and...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">This is a really exotic error! </span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">It happened during an Index Rebuild operation of a CRM database and there is absolutely no documentation on the Internet about this error!</span></p>
<p>&nbsp;</p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">So here is what you could do regarding this error:</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">1. Replace the Rebuild Indexes maintenance step with a Reorganize Indexes step and an Update Statistics step</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">2. Check the database for corruption issues using DBCC CHECKDB. Verify there are 0 allocation and 0 consistency errors. If any errors are found, repair them.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">3. Check if there are any duplicate rows at the database object where this error occurred. For a CRM database, an additional recommendation good starting point would be to check the table ExchangeSyncIdMappingBase for duplicate rows and eliminate them. </span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">Good luck with that error if you ever manage to see it! :)</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small; background-color: #ffff00;">A solution has been found by my colleague, Balmukund Lakhani. It is blogged here:</span></p>
<p><span style="font-size: small;"><a href="https://sqlserver-help.com/2015/02/11/solution-getting-error-while-running-rebuild-index-on-crm-database-unable-to-process-object-id-id-object-name-because-it-is-a-synonym-if-the-object-referenced-by-the-synony/">https://sqlserver-help.com/2015/02/11/solution-getting-error-while-running-rebuild-index-on-crm-database-unable-to-process-object-id-id-object-name-because-it-is-a-synonym-if-the-object-referenced-by-the-synony/</a></span></p>]]></content:encoded>
    </item>
    <item>
      <title>How to install a Service Pack at a SQL Server 2012 Failover Instance - Best Practices</title>
      <link>https://docs.microsoft.com/archive/blogs/john_daskalakis/how-to-install-a-service-pack-at-a-sql-server-2012-failover-instance-best-practices</link>
      <pubDate>Fri, 05 Sep 2014 06:58:16 GMT</pubDate>
      <dc:creator><![CDATA[JohnDask]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/john_daskalakis/2014/09/05/how-to-install-a-service-pack-at-a-sql-server-2012-failover-instance-best-practices/</guid>
      <description><![CDATA[Best practices for updating a SQL Server 2012 Failover Instance
&nbsp;
Part 1 &ndash; Preparing...]]></description>
      <content:encoded><![CDATA[<p align="center"><strong><span style="text-decoration: underline;">Best practices for updating a SQL Server 2012 Failover Instance</span></strong></p>
<p><strong>&nbsp;</strong></p>
<p><strong>Part 1 &ndash; Preparing for the installation</strong></p>
<p>Preparing for the Service Pack installation is the most important part. Skipping one or more of the preparations steps imposes a risk and is not a recommended action.</p>
<p>&nbsp;</p>
<p>-&nbsp; Testing before deployment:</p>
<p>&nbsp;Service packs and hotfixes must be tested on a representative non-production environment prior to being deployed to production. Thus, you should perform the installation of the SQL Server 2012 Service Pack at your test environment first. Identify and resolve any issues that occur to the test environment before deploying the Service Pack to your production environment.</p>
<p>&nbsp;</p>
<p>&nbsp;-&nbsp; Identify existing issues:</p>
<p>&nbsp;Use the SQL Server 2012 BPA tool to scan the instance you wish to update:</p>
<p><a href="https://www.microsoft.com/en-us/download/details.aspx?id=29302">Microsoft&reg; SQL Server&reg; 2012 Best Practices Analyzer</a></p>
<p>Resolve any issues identified by this tool before proceeding.</p>
<p>&nbsp;</p>
<p>&nbsp;- &nbsp;Validate the consistency of your databases:</p>
<p>Run a consistency check (<a href="https://msdn.microsoft.com/en-us/library/ms176064(v=sql.110).aspx">DBCC CHECKDB</a>) against every User and System database (i.e. master, model, msdb). Make sure that the check reports 0 allocation and 0 consistency errors for each database:</p>
<p>CHECKDB found 0 allocation errors and 0 consistency errors in database</p>
<p>If any allocation or consistency errors are detected for one or more of the databases, these should be repaired before the Service Pack installation takes place: <a href="https://blogs.msdn.com/b/cindygross/archive/2010/06/13/dbcc-checkdb-database-integrity.aspx">DBCC CHECKDB / Database Integrity</a></p>
<p>&nbsp;</p>
<p>-&nbsp; Backup your data:</p>
<p>Take a FULL backup from all the User databases (especially from the user databases that are involved in a replication topology) and of all the System databases (i.e. master, model, msdb), in case you need to roll-back the SQL Server instance to its former state after the installation finishes.</p>
<p>&nbsp;If you have installed Analysis Services, you should also backup this set of data:</p>
<ul>
<li>Analysis Services databases. By default, these are installed to C:\Program Files\Microsoft SQL Server\MSAS11.&lt;InstanceID&gt;\OLAP\Data\. For WOW installations, the default path is C:\ProgramFiles (x86)\Microsoft SQL Server\MSAS11.&lt;InstanceID&gt;\OLAP\Data\.</li>
<li>Analysis Services configuration setting in the msmdsrv.ini configuration file. By default, this is located in the C:\Program Files\Microsoft SQL Server\MSAS11.&lt;InstanceID&gt;\OLAP\Config\ directory.</li>
<li>The database that contains the Analysis Services repository. This step is required only if Analysis Services was configured to work with the Decision Support Objects (DSO) library.</li>
</ul>
<p>&nbsp;</p>
<p>-&nbsp; Make sure the System databases have free disk space inside their files:</p>
<p>If the autogrow option is not selected for the master and msdb system databases, these databases must each have at least 500 KB of free disk space. To verify that the databases have sufficient space, run the<br />sp_spaceused system stored procedure on the master and msdb databases. If the unallocated space in either database is less than 500 KB, increase the size of the database manually or simply allow these databases to autogrow.</p>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; Verify you have downloaded the correct Service Pack package:</p>
<p>&nbsp;Service pack package (PCU): &lt;SQLServer2012&gt;&lt;SPx&gt; -KBxxxxxx-PPP-LLL.exe</p>
<ul>
<li>x<br />indicates the service pack number</li>
<li><br />PPP<br />indicates the specific platform</li>
<li><br />LLL<br />indicates the character abbreviation for the SQL Server language (e.g. LLL for<br />English is ENU)</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;-&nbsp; Verify there is enough free disk space at the nodes:</p>
<p>The recommended disk space requirements are approximately 2.5 times the size of the package to install, download, and extract the package. As SQL Server 2012 SP2 is almost 1016 MB, the recommended free disk space is 2540 MB. After installing a service pack, you can remove the downloaded package. Any temporary files are removed automatically.</p>
<p>&nbsp;</p>
<p>-&nbsp; &nbsp;Make the Service Pack package available to each node:\</p>
<ul>
<li>As a best practice, you should copy the Service Pack package locally at each node of the cluster.</li>
<li>If that is not possible, you could choose to install the Service Pack from a network share.</li>
</ul>
<p>&nbsp;&nbsp;&nbsp; Note: Running the Service Pack package from a local disk of the node is the safest choice</p>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; Use an account with adequate permissions to run the setup:</p>
<p>Use a domain account that is a local administrator at all the nodes of the Windows cluster. If you install SQL Server from a remote share, you must verify that this domain account has read and execute permissions on the remote share.</p>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; Stop Services and Applications:</p>
<p>To avoid a possible restart of the system, stop all applications and services that make connections to the instances of SQL Server that are being upgraded, before installing SQL Server 2012 updates. These include SQL Server Management Studio, SQL Server Data Tools (SSDT). For a SQL Server failover instance, this means that you should failover the SQL Server cluster group (Role) to another node before updating the current node.</p>
<p><strong></strong>&nbsp;</p>
<p><strong>&nbsp;</strong><strong>Part 2 &ndash; Performing the installation</strong></p>
<p>Having made the proper preparations, the Service Pack installation should be a relatively simple task.</p>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; Execute the SQL Server 2012 Service Pack&nbsp;package at the first passive node:</p>
<p>&nbsp;Double click the SQL Server 2012 Service Pack&nbsp;package and follow the instructions of the setup</p>
<p>&nbsp;On the Choose Directory for Extracted Files dialog, the default directory path is prepopulated:</p>
<p>&lt;Current drive&gt;\&lt;Currentworking folder&gt;\&lt;Package name&gt;</p>
<p>&nbsp;Click Browse if you wish to change the directory path for the extracted files.</p>
<p>The package decompresses to the specified installation path and would be left behind in the selected directory path after the installation completes. A user will be able to use the binaries in the extracted folder for future Installations. As this folder may prove useful for future maintenance operations, do not delete it if possible.</p>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; After the setup finishes successfully, reboot this node as a best practice, even if the setup reports that a reboot is not required.</p>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; Then repeat the same procedure at the next passive node. Failover the SQL Server cluster groups (Roles) as needed between the nodes, so that each time you patch a passive node. Don&rsquo;t forget to reboot each<br />node after the setup finishes successfully.</p>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; Start the Services and Applications you had shut down as part of the installation&rsquo;s preparation procedure.</p>
<p>&nbsp;<strong>&nbsp;</strong><strong>&nbsp;</strong></p>
<p><strong>&nbsp;</strong></p>
<p><strong>Part 3 &ndash; Verifying the installation</strong></p>
<p>Having finished the installation part, it is now time to verify that the Service Pack was installed and the SQL Server components were all updated successfully.</p>
<p>&nbsp;</p>
<p>-&nbsp; Verify that the SQL Server services are online.</p>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; Verify that the SQL Server build has been updated successfully:</p>
<p>The reported build for an instance patched with SQL Server 2012 SP2 should be 11.0.5058.0</p>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; You could additionally examine the SQL Server setup logs of each node to make sure that all components were patched successfully:</p>
<ul>
<li>Logon to each node</li>
<li>Navigate to folder C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log</li>
<li>Open the Summary.txt file file</li>
<li>Make sure each component was patched successfully (exit code should be equal to zero):</li>
</ul>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; Test your applications to make sure that their functionality was not broken by the SP installation.</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;</p>
<p><strong>Part 4 &ndash; Repair &amp; Rollback options</strong></p>
<p>If the installation of SQL Server 2012 SP2 broke the functionality of your applications or if there is some other need to roll back the recently installed service pack, you may use these options:</p>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; Uninstall the Service Pack:&nbsp;</p>
<ul>
<li>You must perform the below steps for each cluster node:</li>
<li>Make sure this is a passive node before running the steps.</li>
<li>Go to "Programs and Features" options in Control Panel and click on "View installed updates"</li>
<li>Highlight the SQL Server 2012 Service Pack 2 and click "Uninstall"</li>
<li>Wait for the Uninstall Service Pack wizard to start</li>
<li>Click "Next" after the update rules are verified.</li>
<li>Select the features for which you need to remove the Service Pack and click "Next"</li>
<li>Once the file check is completed, Click "Next"</li>
<li>Verify the Summary and click "Remove"</li>
<li>Wait for the process to complete</li>
<li>Reboot the node</li>
</ul>
<p>&nbsp;</p>
<p>-&nbsp;&nbsp; Repair the SQL Server 2012 failover instance:</p>
<ul>
<li>Repair must be run on each individual cluster nodes that is affected/damaged</li>
<li>Launch the SQL Server Setup program (setup.exe) from SQL Server installation media.</li>
<li>After prerequisites and system verification, the Setup program will display the SQL Server Installation Center page.</li>
<li>Click Maintenance in the left-hand navigation area, and then click Repair to start the repair operation.</li>
<li>If the Installation Center was launched using the start menu, you will need to provide the location of the installation media at this time.</li>
<li>Setup support rule and file routines will run to ensure that your system has prerequisites installed and that the computer passes Setup validation rules. Click OK or Install to continue.</li>
<li>On the Select Instance page, select the instance to repair, and then click Next to continue.</li>
<li>The repair rules will run to validate the operation. To continue, click Next.</li>
<li>The Ready to Repair page indicates that the operation is ready to proceed. To continue, click Repair.</li>
<li>The Repair Progress page shows the status of the repair operation. The Complete page indicates that the operation is finished.</li>
<li>If the repair fails, the only option left is to reinstall the failover instance.</li>
</ul>
<p>&nbsp;</p>
<p>-&nbsp; Reinstall the SQL Server 2012 failover instance:</p>
<p>If the SQL Server installation has been severely corrupted or if there occurs a similar catastrophic error, you may need to reinstall the SQL Server 2012 failover instance. But to reinstall the instance, you need to<br />first uninstall it. You may use these steps in this case:</p>
<ul>
<li>Insert the SQL Server installation media. From the root folder, double-click setup.exe. To install from a network share, navigate to the root folder on the share, and then double-click Setup.exe.</li>
<li>The Installation Wizard launches the SQL Server Installation Center. To remove a node to an existing failover cluster instance, click Maintenance in the left-hand pane, and then select Remove node from a SQL Server failover cluster.</li>
<li>The System Configuration Checker will run a discovery operation on your computer. To continue, click OK.</li>
<li>After you click install on the Setup Support Files page, the System Configuration Checker verifies the system state of your computer before Setup continues. After the check is complete, click Next to continue.</li>
<li>On the Cluster Node Configuration page, use the drop-down box to specify the name of the SQL Server failover cluster instance to be modified during this Setup operation. The node to be removed is listed in the Name of this node field.</li>
<li>The Ready to Remove Node page displays a tree view of options that were specified during Setup. To continue, click Remove.</li>
<li>During the remove operation, the Remove Node Progress page provides status.</li>
<li>The Complete page provides a link to the summary log file for the remove node operation and other important notes. To complete the SQL Server remove node, click Close.</li>
<li>Reboot the node</li>
<li>Reinstall the failover instance</li>
<li>Restore the System &amp; User databases</li>
<li>Apply the Service Pack/Cumulative Update you were using before you tried to install SP2</li>
</ul>
<p><strong></strong>&nbsp;</p>
<p><strong>References:</strong></p>
<p><a href="https://www.microsoft.com/en-us/download/details.aspx?id=43340">Microsoft&reg; SQL Server&reg; 2012 Service Pack 2 (SP2)</a></p>
<p><a href="https://msdn.microsoft.com/en-us/library/67cb8b3e-3d82-47f4-840d-0f12a3bff565">SQL Server 2012 SP2 Release Notes</a></p>
<p><a href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Install%20SQL%20Server%202012%20servicing%20updates">Install SQL Server 2012 servicing updates</a></p>
<p><a href="https://blogs.technet.com/b/beatrice/archive/2009/02/10/best-practices-for-installing-sql-server-service-packs-hotfixes-cumulative-updates.aspx">Best Practices for installing SQL Server service<br />packs, hotfixes, cumulative updates</a></p>
<p><a href="https://msdn.microsoft.com/library/cc750077.aspx">Best Practices for Applying Service Packs, Hotfixes<br />and Security Patches</a></p>
<p><a href="https://msdn.microsoft.com/en-us/library/dn178483(v=sql.110).aspx">Upgrade and Update of Availability Group Servers with<br />Minimal Downtime and Data Loss</a></p>
<p><a href="https://msdn.microsoft.com/en-us/library/dd638062(v=sql.110).aspx">Overview of SQL Server Servicing Installation</a></p>
<p><a href="https://www.sanssql.com/2012/10/un-installing-service-pack-for-sql.html">Un-Installing Service Pack for SQL Server</a></p>
<p><a href="https://blogs.msdn.com/b/cindygross/archive/2010/06/13/dbcc-checkdb-database-integrity.aspx">DBCC CHECKDB / Database Integrity</a></p>
<p><a href="https://www.microsoft.com/en-us/download/details.aspx?id=29302">Microsoft&reg; SQL Server&reg; 2012 Best Practices Analyzer</a></p>
<p><a href="https://msdn.microsoft.com/en-us/library/ms190438(v=sql.110).aspx">Remove a SQL Server Failover Cluster Instance (Setup)</a></p>
<p><a href="https://msdn.microsoft.com/en-us/library/ms191545(v=sql.110).aspx">Add or Remove Nodes in a SQL Server Failover Cluster<br />(Setup)</a></p>
<p><a href="https://msdn.microsoft.com/en-us/library/ms178061(v=sql.110).aspx">Failover Cluster Instance Administration and<br />Maintenance</a></p>]]></content:encoded>
    </item>
    <item>
      <title>How to troubleshoot Scheduled Tasks that fail to run</title>
      <link>https://docs.microsoft.com/archive/blogs/john_daskalakis/how-to-troubleshoot-scheduled-tasks-that-fail-to-run</link>
      <pubDate>Wed, 21 May 2014 05:55:21 GMT</pubDate>
      <dc:creator><![CDATA[JohnDask]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/john_daskalakis/2014/05/21/how-to-troubleshoot-scheduled-tasks-that-fail-to-run/</guid>
      <description><![CDATA[Frequently a Scheduled Task fails to execute and you need to identify why it stopped working. Or it...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;">Frequently a Scheduled Task fails to execute and you need to identify why it stopped working. Or it may have never worked correctly and now is the time to fix it! :)</span></span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">The first thing I do is check the Events in the History Tab. Both the Successful and Failed runs of this Task will be logged here as Events. </span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">You can even save these events as an .evtx file which can then be opened by the Eventviewer tool:</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/69/8345.Save%20Events.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-69/8345.Save-Events.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/69/8345.Save%20Events.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-69/8345.Save-Events.jpg" alt="" border="0" /></a></span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">The event id of the problematic Task will usually give you good hints about the root cause of the failure.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">The next thing I like to check is the conditions under which this Task fails to run. To do this, I prefer to directly check the XML file of the Task. First I export the Task as an XML file:</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/69/6683.Export%20Task.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-69/6683.Export-Task.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/10/69/6683.Export%20Task.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-69/6683.Export-Task.jpg" alt="" border="0" /></a></span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">Then I review the conditions inside the files and check which could apply in my specific scenario:</span></p>
<p><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;MultipleInstancesPolicy&gt;IgnoreNew&lt;/MultipleInstancesPolicy&gt;</span><br /><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;DisallowStartIfOnBatteries&gt;true&lt;/DisallowStartIfOnBatteries&gt;</span><br /><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;StopIfGoingOnBatteries&gt;true&lt;/StopIfGoingOnBatteries&gt;</span><br /><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;AllowHardTerminate&gt;true&lt;/AllowHardTerminate&gt;</span><br /><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;StartWhenAvailable&gt;false&lt;/StartWhenAvailable&gt;</span><br /><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;RunOnlyIfNetworkAvailable&gt;false&lt;/RunOnlyIfNetworkAvailable&gt;</span><br /><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;AllowStartOnDemand&gt;true&lt;/AllowStartOnDemand&gt;</span><br /><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;Enabled&gt;true&lt;/Enabled&gt;</span><br /><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;Hidden&gt;false&lt;/Hidden&gt;</span><br /><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;RunOnlyIfIdle&gt;false&lt;/RunOnlyIfIdle&gt;</span><br /><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;WakeToRun&gt;false&lt;/WakeToRun&gt;</span><br /><span style="color: #3366ff; font-family: arial,helvetica,sans-serif; font-size: small;">&lt;ExecutionTimeLimit&gt;P3D&lt;/ExecutionTimeLimit&gt;</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">You could also use this exported XML file to import the Task at another server where you want it to be executed.</span></p>
<p><span style="font-family: arial,helvetica,sans-serif; font-size: small;">If you have found better ways to troubleshoot failed Tasks please let me know! You are&nbsp;never too old to learn new tricks&nbsp;:)</span></p>]]></content:encoded>
    </item>
    <item>
      <title>The OpenSSL "Heartbleed" vulnerability and SQL Server</title>
      <link>https://docs.microsoft.com/archive/blogs/john_daskalakis/the-openssl-heartbleed-vulnerability-and-sql-server</link>
      <pubDate>Wed, 16 Apr 2014 00:51:37 GMT</pubDate>
      <dc:creator><![CDATA[JohnDask]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/john_daskalakis/2014/04/16/the-openssl-heartbleed-vulnerability-and-sql-server/</guid>
      <description><![CDATA[I just wanted to share with everyone that SQL Server is unaffected by the OpenSSL "Heartbleed"...]]></description>
      <content:encoded><![CDATA[<p>I just wanted to share with everyone that SQL Server is unaffected by the OpenSSL "Heartbleed" vulnerability:</p>
<p><a href="https://blogs.technet.com/b/security/archive/2014/04/10/microsoft-devices-and-services-and-the-openssl-heartbleed-vulnerability.aspx">Microsoft Services unaffected by OpenSSL "Heartbleed" vulnerability</a></p>
<p>It is unlikely that this vulnerability would affect SQL Server itself, because neither Windows or SQL Server use the OpenSSL software.</p>
<p>If there are any updates regarding this vulnerability, they will be released in the <a href="https://blogs.technet.com/b/security/">Microsoft Security Blog</a>.</p>]]></content:encoded>
    </item>
  </channel>
</rss>