<?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>SQL Server And MSBI</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/sql_server_and_msbi/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/sql_server_and_msbi/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:51:56 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Asynchronous Processing with SQL Server Service Broker - A case Study</title>
      <link>https://docs.microsoft.com/archive/blogs/sql_server_and_msbi/asynchronous-processing-with-sql-server-service-broker-a-case-study</link>
      <pubDate>Wed, 18 Mar 2015 06:47:12 GMT</pubDate>
      <dc:creator><![CDATA[Keshav K Singh]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sql_server_and_msbi/2015/03/18/asynchronous-processing-with-sql-server-service-broker-a-case-study/</guid>
      <description><![CDATA[How about an asynchronous queuing mechanism which doesn&rsquo;t entail a customary two phase commit...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">How about an asynchronous queuing mechanism which doesn&rsquo;t entail </span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">a customary two phase commit ? </span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">How about, not worrying about dead locks,</span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">transactions, blockings, waits ? </span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">How about scaling out/up your systems without </span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">any extra line of codes ?</span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">How about not losing your peace of mind over data integrity/Consistency </span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">? </span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">How about simply adding your order to a queue and the system confirms the </span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">order with the order confirmation popping into your inbox ? </span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">SQL Server answers it </span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">all with remarkable two words &ndash; &ldquo;<strong>Service Broker</strong>&rdquo; !</span></p>
<p>&nbsp;</p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">The vblog discusses a case study in &lt; 15 mins, for an </span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">online ecommerce site, on how the orders can be asynchronously processed and </span><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">confirmation emails be sent, all with the help of SQL Server Service Broker.</span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">[View:https://www.youtube.com/watch?v=jXhTE5BY8eA]</span></p>]]></content:encoded>
    </item>
    <item>
      <title>Error: Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection.</title>
      <link>https://docs.microsoft.com/archive/blogs/sql_server_and_msbi/error-heterogeneous-queries-require-the-ansi_nulls-and-ansi_warnings-options-to-be-set-for-the-connection</link>
      <pubDate>Wed, 18 Mar 2015 01:49:00 GMT</pubDate>
      <dc:creator><![CDATA[Keshav K Singh]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sql_server_and_msbi/2015/03/18/error-heterogeneous-queries-require-the-ansi_nulls-and-ansi_warnings-options-to-be-set-for-the-connection/</guid>
      <description><![CDATA[Last week sometime, working on a very tight project with stringent deliverables and deadlines, its...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: small;">Last week sometime, working on a very tight project with stringent deliverables and deadlines, its just when you don't need a reason you have one, a show stopper. And your job is failing. The error quite obscure : "Error: Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection." Of the internet/people/voices/opinions and some ON/OFF with no logical reason or supporting workable evidence. It didn't work ! </span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: small;">I&nbsp;discovered something quite trivial, yet unknown. </span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: small;">To start with,</span></p>
<p><span style="font-family: courier new,courier;">EXECUTE <span style="background-color: #ffff00;">usp&lt;&lt;Procedure&gt;&gt;&nbsp;</span> @LinkedServerName =&lt;&lt;LinkedServerName&gt;&gt;&nbsp;,@SourceDatabaseName =&lt;&lt;SrcDBName&gt;&gt;,@SourceTableName=&lt;&lt;SrcTableName&gt;&gt;&nbsp;,@TargetTableName = &lt;&lt;TargetTblName&gt;&gt;</span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">The code was trying to call a Proc to connect to a Source and populate the target data, and was failing with the error message in context.</span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">The procedure already had the <span style="background-color: #ffff00;">3 sacred</span> declarations.</span></p>
<p><span style="font-family: courier new,courier;"><span style="font-family: courier new,courier;">CREATE usp_Proc </span></span><span style="font-family: courier new,courier;">@Pram1 INT&nbsp; = 0</span><br /><span style="font-family: courier new,courier;">,@Pram1 VARCHAR(10) = NULL</span><br /><span style="font-family: courier new,courier;">AS</span><br /><span style="font-family: courier new,courier;">BEGIN</span><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp; BEGIN TRY</span><br /><span style="font-family: courier new,courier; background-color: #ffff00;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET ANSI_NULLS ON</span><br /><span style="font-family: courier new,courier; background-color: #ffff00;">&nbsp;&nbsp;SET QUOTED_IDENTIFIER ON</span><br /><span style="font-family: courier new,courier; background-color: #ffff00;">&nbsp;&nbsp;SET ANSI_WARNINGS ON</span><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET NOCOUNT ON;</span></p>
<p><span style="font-family: courier new,courier;">.</span></p>
<p><span style="font-family: courier new,courier;">.</span></p>
<p><span style="font-family: courier new,courier;">EXECUTE <span style="background-color: #ffff00;">usp&lt;&lt;Procedure&gt;&gt;&nbsp;</span> @LinkedServerName =&lt;&lt;LinkedServerName&gt;&gt;&nbsp;,@SourceDatabaseName =&lt;&lt;SrcDBName&gt;&gt;,@SourceTableName=&lt;&lt;SrcTableName&gt;&gt;&nbsp;,@TargetTableName = &lt;&lt;TargetTblName&gt;&gt;</span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif;">I tried to play with it, turning to ON/OFF hoping that the job would run, until I bumped into, Stored Procedure <strong>Properties</strong></span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/00/0257.1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-00/0257.1.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/00/0257.1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-00/0257.1.jpg" alt="" border="0" /></a></p>
<p>The Properties for the Proc in question was</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/00/3704.2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-00/3704.2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/00/3704.2.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-00/3704.2.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">The ANSI_NULLs ans Quoted Identifier Properties were SET to FALSE. To SET the same, I executed the PROC ALTER script with the <span style="background-color: #00ff00;">Properties ADDed AS ON</span></span></p>
<p><span style="font-family: courier new,courier; background-color: #00ff00;">SET ANSI_NULLS ON</span><br /><span style="font-family: courier new,courier; background-color: #00ff00;">GO</span><br /><span style="font-family: courier new,courier; background-color: #00ff00;">SET QUOTED_IDENTIFIER ON</span><br /><span style="font-family: courier new,courier; background-color: #00ff00;">GO</span><br /><span style="font-family: courier new,courier;">ALTER PROCEDURE </span><br /><span style="font-family: courier new,courier;">@Pram1 INT&nbsp; = 0</span><br /><span style="font-family: courier new,courier;">,@Pram1 VARCHAR(10) = NULL</span><br /><span style="font-family: courier new,courier;">AS</span><br /><span style="font-family: courier new,courier;">BEGIN</span><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp; BEGIN TRY</span><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET ANSI_NULLS ON</span><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;SET QUOTED_IDENTIFIER ON</span><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;SET ANSI_WARNINGS ON</span><br /><span style="font-family: courier new,courier;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET NOCOUNT ON;</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/00/3716.3.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-00/3716.3.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/70/00/3716.3.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-70-00/3716.3.jpg" alt="" border="0" /></a></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">With these SET to TRUE, the job/code succeeded and the issue was resolved. </span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: medium;">Hope it helps.</span></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Comparing Isolation Levels in SQL Server</title>
      <link>https://docs.microsoft.com/archive/blogs/sql_server_and_msbi/comparing-isolation-levels-in-sql-server</link>
      <pubDate>Tue, 17 Mar 2015 06:59:00 GMT</pubDate>
      <dc:creator><![CDATA[Keshav K Singh]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sql_server_and_msbi/2015/03/17/comparing-isolation-levels-in-sql-server/</guid>
      <description><![CDATA[Transactions form a very important concept for any significant data operations. Keeping your data...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: tahoma,arial,helvetica,sans-serif;">Transactions form a very important concept for any significant data operations. Keeping your data isolated and abiding by the ACID properties form the core of the transaction concept. This vblog is my take to SQL Server READ COMITTED, REPEATABLE READ and SERIALIZABLE isolation levels. </span></p>
<p><span style="font-family: tahoma,arial,helvetica,sans-serif;">[View:https://www.youtube.com/watch?v=kTU3PtP_pkg]</span></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
  </channel>
</rss>