<?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>Data-and-AI for Developers</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/feed.xml</link>
    <description />
    <lastBuildDate>Sat, 31 Mar 2018 16:12:14 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>AI Infused Apps- Access to Source Code &amp; Demos</title>
      <link>https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/ai-infused-apps-access-to-source-code-demos</link>
      <pubDate>Sat, 31 Mar 2018 16:12:13 GMT</pubDate>
      <dc:creator><![CDATA[Tara Shankar Jana]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sql-bi-sap-cloud-crm_all_in_one_place/?p=225</guid>
      <description><![CDATA[Check this blog post I wrote on building intelligent applications of the future now (with relative...]]></description>
      <content:encoded><![CDATA[Check this blog post I wrote on building intelligent applications of the future now (with relative source code and demos) here at- Microsoft ML Blogs.

https://blogs.technet.microsoft.com/machinelearning/2018/03/01/now-available-access-to-source-code-demos-of-ai-infused-apps/

&nbsp;]]></content:encoded>
    </item>
    <item>
      <title>PASS SUMMIT 2016 Pre-Con- "Immersion: Taking a Hands on Approach to Building Intelligence into Data Driven Applications"</title>
      <link>https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/pass-summit-2016-pre-con-immersion-taking-a-hands-on-approach-to-building-intelligence-into-data-driven-applications</link>
      <pubDate>Sat, 17 Sep 2016 14:27:55 GMT</pubDate>
      <dc:creator><![CDATA[Tara Shankar Jana]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sql-bi-sap-cloud-crm_all_in_one_place/?p=146</guid>
      <description><![CDATA[In this modern era; applications must recover from user errors efficiently, must be optimized for...]]></description>
      <content:encoded><![CDATA[In this modern era; applications must recover from user errors efficiently, must be optimized for transactional performance, must provide real-time insights into app transactions, must be secure and complaint, and must support seamless integration to cloud, hybrid scenarios and other data types/ systems. These applications must also learn and adapt to deliver more powerful experiences using cloud based data services, applications and intelligence.

Developer Immersion- “Data for Development” is a scenario based hands-on lab knowledge program; to get developers engaged with building hack-free, performant, scalable applications using; SQL Server, R, Machine Learning, Data warehouse, Big Data, developer tools, Azure data services (SQL Database, DocumentDB, Search), PowerBI embedded. The program also provides developers with a cohesive and consistent experience to build modern on-premises/cloud based applications with intelligence.

Bring your device to this session and get access to a full day of hands-on-labs. The session will provide a rich experience to build business applications with the above mentioned needs of modern applications, using developer centric products and features. Also you get the opportunity to speak with Microsoft Product Engineering group during the course of the session.

The “data for development” immersion program includes 15 development lab scenarios. Each of these different scenarios present a realistic development <strong>challenge</strong> and the <strong>solution to the challenge</strong> provided by different features, aligned to the scenario. The individual scenarios are divided into four experiences, which are thematic groups for all the features we’ll cover.

<b><strong>Experience 1-</strong> <strong>“SQL Server 2016 for Developers- Everything Built-In”</strong></b>

In this scenario based lab, we will build a business expense application named “myexpenses”. Scenarios covered-
<ul>
 	<li>Recover from user errors more easily using Temporal</li>
 	<li>Optimize transactional performance using memory-optimized tables and natively compiled SPs</li>
 	<li>Provide real-time insights into app transactions using columnstore</li>
 	<li>Develop secure and compliant database apps (Always encrypted, Dynamic Data Masking, and Row Level Security)</li>
 	<li>Stretch cold data to the cloud without losing query functionality</li>
 	<li>Explore the power of JSON in SQL Server</li>
</ul>
<strong>Experience 2</strong>- “<strong>Modernizing applications with intelligence”</strong>

In this scenario based lab we will add intelligence to “myexpenses” application we built in Experience 1. Scenarios covered-
<ul>
 	<li>Build predictive and prescriptive analytics into your app using R</li>
 	<li>Re-architect your workload for cloud</li>
</ul>
<strong>Experience 3</strong>- “<strong>Evolving SQL workloads from software to SaaS model”</strong>

In this scenario we will build an e-Commerce retail based SaaS (Software as a Service) application using Azure database services (Azure SQL Database). Scenarios covered-
<ul>
 	<li>Build multitenant cloud-based apps with customer isolation and efficiency</li>
 	<li>Leverage built-in service intelligence for greater performance and data security</li>
 	<li>Develop more secure and compliant apps with minimal custom code changes</li>
</ul>
<strong>Experience 4</strong>- “<strong>Modernizing cloud-based web apps “</strong>

In this scenario we will evolve and grow the e-Commerce web application by adding datalake, data warehouse, DocumentDB (NoSQL), Azure Search capabilities. Scenarios covered-
<ul>
 	<li>Accelerate development with NoSQL</li>
 	<li>Build first-class search experiences within your web apps</li>
 	<li>Process unstructured Big Data using U-SQL</li>
 	<li>Build SQL-based cloud Data Warehouse solutions to support Business intelligence.</li>
</ul>]]></content:encoded>
    </item>
    <item>
      <title>Windows Azure VM- Error: The Remote Computer that you are trying to connect to requires Network Level Authentication (NLA)</title>
      <link>https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/windows-azure-vm-error-the-remote-computer-that-you-are-trying-to-connect-to-requires-network-level-authentication-nla</link>
      <pubDate>Sun, 06 Jul 2014 03:36:44 GMT</pubDate>
      <dc:creator><![CDATA[Tara Shankar Jana]]></dc:creator>
      <guid
        isPermaLink="false">https://qa.msdn.wdslab.com/sql-bi-sap-cloud-crm_all_in_one_place/2014/07/06/windows-azure-vm-error-the-remote-computer-that-you-are-trying-to-connect-to-requires-network-level-authentication-nla/</guid>
      <description><![CDATA[&#160;  Alright, this was an interesting issue! so thought of sharing with you all. It might come in...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p>Alright, this was an interesting issue! so thought of sharing with you all. It might come in handy!</p>  <p>I built my private domain controller and forest in Windows Azure IaaS named CORP. I created Affinity groups and a private network which helped with assigning static DNS IP for the DC. I also installed two member servers (VMs in Azure) with Windows 2012 R2 and SQL 2014 image from the Azure gallery. Attached them to the CORP domain and assigned the static DNS IP of the DC to the member server as it’s DNS Entry, though I kept DHCP IP for the member servers to use their own IP’s.</p>  <p>I had this limitation of 20 Procs in my subscription and I was running few Oracle, SQL and Windows VM’s, result I could only create the new SQL 2014 VM’s with minimum processors, and hence had to be satisfied with the bare minimum CPU cores and memory (2 Cores and 3.5 GB RAM).</p>  <p>Lately, I was asked to deliver a session on SQL 2014 In-Memory, MOA, Resource Governor and Cardinality Estimator for which I had no choice other than uplifting the infrastructure for one of the SQL 2014 VM’s (16GB RAM and 8 Cores). </p>  <p>Indeed it was easy to change right. Just go to the VM configuration and change the Virtual Machine size (See Figure 1):</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/0184.image_6CDE445B.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/0184.image_5F00_6CDE445B.png"><img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/0143.image_thumb_5B23CB32.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/0143.image_5F00_thumb_5F00_5B23CB32.png" width="475" height="198" /></a></p>  <p>Figure 1</p>  <p>So, I made the changes and the server was rebooted once the infrastructure uplift was done, and after the server came up I couldn’t connect with my domain credentials CORP\useraccount</p>  <p>I kept getting the following <strong>error:</strong></p>  <p><font color="#ff0000">[Window Title]     <br /> Remote Desktop Connection</font></p> <font color="#ff0000"></font>  <p><font color="#ff0000">[Content]     <br /> The remote computer that you are trying to connect to requires Network Level Authentication (NLA), but your Windows domain controller cannot be contacted to perform NLA. If you are an administrator on the remote computer, you can disable NLA by using the options on the Remote tab of the System Properties dialog box.</font></p> <font color="#ff0000"></font>  <p><font color="#ff0000">[OK]</font>    <br /></p>  <p>Here is how the error looks like pictorially: </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/5367.image_664FE62D.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/5367.image_5F00_664FE62D.png"><img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/4743.image_thumb_55D77532.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/4743.image_5F00_thumb_5F00_55D77532.png" width="464" height="113" /></a></p>  <p>So, what is the solution? You will see numerous posts in the public domain asking for updating your RDP Client etc. and indeed that may apply (please verify if the above conditions are true to apply this solution</p>  <p><strong>Solution:</strong></p>  <p><font color="#0000ff">For Azure VMs, when you increase the size of the VM (adding CPU and Memory), the network configuration is reset. This means that if you have a static DNS defined inside the VM, it would be set to DHCP assigned which is the public DNS in Azure.</font></p>  <p><font color="#0000ff">Use local admin account to log on to the virtual machine and set the DNS to point to your DC. Alternatively, assign the IP address of the DC/DNS under DNS servers of virtual network. </font></p>  <p>Please let me know if you have any questions or concerns around this.</p>]]></content:encoded>
    </item>
    <item>
      <title>Find the Size of Azure Databases using Powershell</title>
      <link>https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/find-the-size-of-azure-databases-using-powershell</link>
      <pubDate>Thu, 29 Aug 2013 05:32:00 GMT</pubDate>
      <dc:creator><![CDATA[Tara Shankar Jana]]></dc:creator>
      <guid
        isPermaLink="false">https://qa.msdn.wdslab.com/sql-bi-sap-cloud-crm_all_in_one_place/2013/08/29/find-the-size-of-azure-databases-using-powershell/</guid>
      <description><![CDATA[There is a T-SQL way of finding the size of the database and there are some public domain scripts to...]]></description>
      <content:encoded><![CDATA[<p>There is a T-SQL way of finding the size of the database and there are some public domain scripts to find the same, I also created one and that&rsquo;s here (indeed with more clarity and structured output)</p>
<p><strong><span style="background-color: #ffff00;"><span style="text-decoration: underline;">Code Snippet</span></span></strong></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/1411.thCA5DDO1F_236F9461.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/1411.thCA5DDO1F_5F00_236F9461.jpg"><img style="display: inline; background-image: none;" title="thCA5DDO1F" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/2806.thCA5DDO1F_thumb_020FEEC5.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/2806.thCA5DDO1F_5F00_thumb_5F00_020FEEC5.jpg" alt="thCA5DDO1F" width="50" height="50" border="0" /></a></p>
<table style="width: 508px;" border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="506">
<p>CREATE TABLE #DatabaseInfo (</p>
<p>database_id varchar(30)</p>
<p>, name NVARCHAR(500)</p>
<p>, AlltablesizeinKB int</p>
<p>)</p>
<p>CREATE TABLE #DatabaseInfo1 (</p>
<p>dbname varchar(400),</p>
<p>dbsizeinKB int</p>
<p>)</p>
<p>DECLARE @dbname nvarchar(100)</p>
<p>DECLARE @command NVARCHAR(4000)</p>
<p>DECLARE @command1 NVARCHAR(4000)</p>
<p>DECLARE @testflag SMALLINT -- 0 execute. 1 Test</p>
<p>SET @testflag = 0</p>
<p>DECLARE dbcursor1 CURSOR FAST_FORWARD FOR</p>
<p>SELECT</p>
<p>name</p>
<p>FROM</p>
<p>sys.databases</p>
<p>WHERE</p>
<p>name NOT IN ('master')</p>
<p>OPEN dbcursor1</p>
<p>FETCH NEXT FROM dbcursor1 INTO @dbname;</p>
<p>WHILE @@FETCH_STATUS = 0</p>
<p>BEGIN</p>
<p>SET @command =</p>
<p>'select database_id, sys.objects.name, sum(reserved_page_count) * 8192 / 1024 from</p>
<p>sys.dm_db_partition_stats, sys.objects, sys.databases</p>
<p>where is_ms_shipped=0 and database_id&gt;1 and sys.dm_db_partition_stats.object_id = sys.objects.object_id group by database_id, sys.objects.name</p>
<p>'</p>
<p>SET @command1= 'select [name], sum(reserved_page_count) * 8192 / 1024 as dbsizeinKB</p>
<p>from sys.dm_db_partition_stats, sys.databases where database_id&gt;1 group by database_id, sys.databases.name'</p>
<p>-- select * from sys.objects</p>
<p>IF @testflag = 0</p>
<p>BEGIN</p>
<p>INSERT INTO #DatabaseInfo</p>
<p>EXEC sp_executesql @command</p>
<p>INSERT INTO #DatabaseInfo1</p>
<p>EXEC sp_executesql @command1</p>
<p>END</p>
<p>ELSE</p>
<p>SELECT @command</p>
<p>FETCH NEXT FROM dbcursor1 INTO @dbname;</p>
<p>END</p>
<p>SELECT</p>
<p>*</p>
<p>FROM</p>
<p>#DatabaseInfo</p>
<p>SELECT * from #databaseinfo1</p>
<p>DROP TABLE #DatabaseInfo</p>
<p>DROP TABLE #DatabaseInfo1</p>
<p>CLOSE dbcursor1</p>
<p>DEALLOCATE dbcursor1</p>
</td>
</tr>
</tbody>
</table>
<p><br /><strong><span style="background-color: #ffff00;"><span style="text-decoration: underline;">Now the Problem</span></span></strong></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/2046.question_mark1_21529598.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/2046.question_5F00_mark1_5F00_21529598.png"><img style="display: inline; background-image: none;" title="question_mark1" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/8037.question_mark1_thumb_60A0235B.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/8037.question_5F00_mark1_5F00_thumb_5F00_60A0235B.png" alt="question_mark1" width="52" height="44" border="0" /></a></p>
<p><span style="color: #ff0000;"><em><strong>Now, if you try to get the size of all databases using the above query, it doesn&rsquo;t work right, I know sad <img class="wlEmoticon wlEmoticon-sadsmile" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/7801.wlEmoticon-sadsmile_0AA02184.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/7801.wlEmoticon_2D00_sadsmile_5F00_0AA02184.png" alt="Sad smile" /> (sorry wrong emoticon)- Surprised! better word</strong></em></span></p>
<p>Firstly, you cannot use &ldquo;USE Database&rdquo; in Azure, hence changing the context of the user database from within the query to another, doesn&rsquo;t work. Secondly, I tried to run the query in one go for all databases and retrieve the results, but&nbsp; then I realized that sys.dm_db_partition_stats in Azure is USER DB scoped and hence we cannot run the query in the context of master either, ALRIGHT!!!</p>
<p>I have figured out a better way of doing this bit and have automated the output generation in excel. Here is what needs to be done. Thanks to Matt Lavery my friend, PFE at Microsoft Australia who gave a very good idea and logic behind getting this result using Powershell, I changed this further and made it look a little more enhanced and better.</p>
<p><strong><span style="text-decoration: underline;"><span style="background-color: #ffff00;">This is how it works, try it and let me know, how you find it. Follow the steps as is</span></span></strong></p>
<p>1. Download the Azure Powershell module directly from <a href="https://go.microsoft.com/?linkid=9811175&amp;clcid=0x409">https://go.microsoft.com/?linkid=9811175&amp;clcid=0x409</a> (Save the exe- this will install Azure Powershell in your machine) and use the cmdlets that it provides. The only problem with this is that you have provide the credentials to the server either via a prompt or you can hard code these if you like (my example below uses a prompt).</p>
<p>2. Here is what I have put together for checking the database capacity and have also added MaxSize which will help you identify the Maxsize each database can grow in your subscription. Change the Azure DB server name accordingly in this script! Use Powershell_ISE for better visibility. Let me know if you have issues running the script or have any questions!</p>
<p><strong><span style="text-decoration: underline;">(Note: You can copy and paste the code below into a notepad, rename it to anything (DBsize) and then change the extension to .ps1 (DBSize.ps1))- I am sure you all know how to execute Powershell, but me being me- <img class="wlEmoticon wlEmoticon-smile" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/4505.wlEmoticon-smile_777EF4D7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/4505.wlEmoticon_2D00_smile_5F00_777EF4D7.png" alt="Smile" />&nbsp; Open-&gt; Windows Azure&nbsp;Powershell (Admin mode)-&gt; Browse till the folder where you have saved the powershell script-&gt;.\DBSize.ps1</span></strong></p>
<p><span style="text-decoration: underline;"><strong><span style="background-color: #ffff00;">Code</span></strong></span>&nbsp;</p>
<table style="width: 507px;" border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="505">
<p>#Make sure you have imported your PublishSettings file as per <a href="https://msdn.microsoft.com/en-us/library/jj554332%28v=azure.100%29.aspx#BKMK_Configure">https://msdn.microsoft.com/en-us/library/jj554332%28v=azure.100%29.aspx#BKMK_Configure</a></p>
<p>#Import the Azure module</p>
<p>Import-Module "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1"</p>
<p>$cred = Get-Credential</p>
<p>#create a crediential to use</p>
<p># NOTE: You will be prompted for Authentication to the server</p>
<p>$ctx = New-AzureSqlDatabaseServerContext -ServerName "<span style="background-color: #ffff00;"><span style="background-color: #ff0000;">ttgochqr7t</span>-Change the Server name to yours only in the red zone and get rid of the yellow</span>" &ndash;Credential $cred</p>
<p>#get all the dbs</p>
<p>$dbs = Get-AzureSqlDatabase $ctx</p>
<p>$excel = new-object -comobject excel.application</p>
<p>$excel.visible = $true</p>
<p>$chartType = "microsoft.office.interop.excel.xlChartType" -as [type]</p>
<p>$workbook = $excel.workbooks.add()</p>
<p>$workbook.WorkSheets.item(1).Name = "dbs"</p>
<p>$sheet = $workbook.WorkSheets.Item("dbs")</p>
<p>$x = 2</p>
<p>$sheet.cells.item(1,1) = "DB Name"</p>
<p>$sheet.cells.item(1,2) = "Current Size (MB)"</p>
<p>$sheet.cells.item(1,3) = "Max Size (GB)"</p>
<p>foreach ($db in $dbs)</p>
<p>{</p>
<p>$sheet.cells.item($x,1) = $db.Name</p>
<p>$sheet.cells.item($x,2) = $db.SizeMB</p>
<p>$sheet.cells.item($x,3) = $db.MaxSizeGB</p>
<p>$x++</p>
<p>}</p>
<p>$range = $sheet.usedRange</p>
<p>$range.EntireColumn.AutoFit()</p>
<p>$workbook.charts.add()</p>
<p>#$vFullPath = 'C:\DataProtector\Data\AzureDb.xls'</p>
<p>#$Excel.SaveAs($vFullPath)</p>
<p>#$Excel.Close()</p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>There are plenty of properties available for each database. If you want to see how to hardcode the credentials check out <a href="https://blogs.msdn.com/b/windowsazure/archive/2013/02/07/windows-azure-sql-database-management-with-powershell.aspx">https://blogs.msdn.com/b/windowsazure/archive/2013/02/07/windows-azure-sql-database-management-with-powershell.aspx</a>, though I wouldn&rsquo;t suggest this due to security reasons.</p>
<p><strong><span style="text-decoration: underline;">Final output looks like this</span></strong></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/4807.clip_image002_68D448F2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/4807.clip_5F00_image002_5F00_68D448F2.jpg"><img style="display: inline; background-image: none;" title="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/6303.clip_image002_thumb_01BFF36B.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/6303.clip_5F00_image002_5F00_thumb_5F00_01BFF36B.jpg" alt="clip_image002" width="714" height="351" border="0" /></a></p>
<p><em><strong><span style="background-color: #ffffff;"><span>Have fun with Cloud and Powershell</span>!!</span></strong></em></p>]]></content:encoded>
    </item>
    <item>
      <title>[Connection manager "FTP Connection Manager"] Error: An error occurred in the requested FTP operation. Detailed error description: The filename, directory name, or volume label syntax is incorrect. .</title>
      <link>https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/connection-manager-ftp-connection-manager-error-an-error-occurred-in-the-requested-ftp-operation-detailed-error-description-the-filename-directory-name-or-volume-label-syntax-is-inc</link>
      <pubDate>Wed, 14 Aug 2013 23:49:56 GMT</pubDate>
      <dc:creator><![CDATA[Tara Shankar Jana]]></dc:creator>
      <guid
        isPermaLink="false">https://qa.msdn.wdslab.com/sql-bi-sap-cloud-crm_all_in_one_place/2013/08/14/connection-manager-ftp-connection-manager-error-an-error-occurred-in-the-requested-ftp-operation-detailed-error-description-the-filename-directory-name-or-volume-label-syntax-is-in</guid>
      <description><![CDATA[Few days back I got a question from one of the SQL DBA’s who was working on a SSIS project. The task...]]></description>
      <content:encoded><![CDATA[<p>Few days back I got a question from one of the SQL DBA’s who was working on a SSIS project. The task was simple but the error was a little tricky to understand and so was the solution (easy one, but worth jotting)</p>  <p><strong><font color="#333333" size="2">Problem:</font></strong></p>  <p><font color="#000000"><strong>The user is trying to execute an SSIS package but it fails on the FTP task with the following error:</strong></font></p>  <p><font style="background-color: rgb(255, 255, 0);" color="#000000"><strong>Error</strong></font></p>  <p><font style="background-color: rgb(255, 255, 0);" color="#ff0000">[Connection manager &quot;FTP Connection Manager&quot;] Error: An error occurred in the requested FTP operation. Detailed error description: The filename, directory name, or volume label syntax is incorrect. .</font></p>  <p><font style="background-color: rgb(255, 255, 0);" color="#ff0000"></font></p>  <p><font style="background-color: rgb(255, 255, 255);" color="#000000"><strong><u>Here is the detailed package flow and logic</u></strong></font></p>  <p><strong><u><font color="#000000"></font></u></strong></p>  <p><strong><em>The SSIS Package had the following logic flow:</em></strong></p>  <p>1. The First Step:&#160; Data is copied into Source.csv file.</p>  <p>2. The file Content is then copied to source OLEDB data connection – SQL Server</p>  <p>3. The data is then further copied from the source to the destination</p>  <p>4. In destination there is a rename operation which is performed</p>  <p>5. Renamed file is then copied to FTP</p>  <p>&#160;</p>  <p><em><strong>Data Flow Diagram</strong></em></p>  <p>1 Process data &amp; dump into csv file</p>  <p>2 File operation:- Copy Template file from Source to destination</p>  <p>3. File operation :- Rename the destination file to required format.</p>  <p>4. FTP:- send operation in FTP</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; delete destination file.</p>  <p>&#160;</p>  <p><strong><em>Details</em></strong></p>  <p>FTP Task Editor=&gt; IsLocalPathVarible:- True</p>  <p>Local Varible :- User::Final</p>  <p>Operation :Send Files</p>  <p>ISTransferASCII :- False</p>  <p>Remote Parameter</p>  <p>IsRemotePathVarible :-False</p>  <p>REmote Path :- \Location</p>  <p>OverwriteFileAtDest :- YES</p>  <p> Final:-D:\test20130724_230456_662000000.xls which has the following expression :</p>  <p>&quot;D:\\test&quot;+Replace(Replace(Replace(Replace((DT_WSTR,50)(getdate()),&quot;-&quot;,&quot;&quot;),&quot; &quot;,&quot;_&quot;),&quot;:&quot;,&quot;&quot;),&quot;.&quot;,&quot;_&quot;)+&quot;.xls&quot;</p>  <p><font style="background-color: rgb(255, 255, 0);" color="#ff0000"></font></p>  <p><strong><em></em></strong></p>  <p><strong><font size="2">Resolution:</font></strong></p>  <p>Fix the final and Rename Variables with correct values. Include the <b>\</b> after C:<b> </b>to fix the problem. As you know that if you try to write C:ProgramFiles, you won’t be able to get to program files, so we need to fix the expression and evaluated expression for User::Final to get this working. Once that is fixed you will be able to get the package working.</p>  <p><b><i>See the User variable Destination, User::Destination – that has a correct value C:\Destination. But not the Final and Rename variables, you will have to fix them both and that should be really easy.</i></b></p>  <p><b><i></i></b></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/4718.clip_image002_1251F29D.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/4718.clip_5F00_image002_5F00_1251F29D.jpg"><img title="clip_image002" style="display: inline; background-image: none;" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/4670.clip_image002_thumb_0BBE730D.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/4670.clip_5F00_image002_5F00_thumb_5F00_0BBE730D.jpg" width="774" height="216" /></a></p>  <p><b><font style="background-color: rgb(255, 255, 0);">My Analysis</font></b></p>  <p>If you see the error: [Connection manager &quot;FTP Connection Manager&quot;] Error: An error occurred in the requested FTP operation. Detailed error description: <b>The filename, directory name, or volume label syntax is incorrect. .</b></p>  <p>1. When I go to FTP Task and check for the File Transfer Task. I see that its using a User variable called Final: and if you see the Value for the Final is<b> </b><b>C:Destination</b><b>,</b><b> it is missing ‘\’</b></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/7446.clip_image004_34E60B4B.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/7446.clip_5F00_image004_5F00_34E60B4B.jpg"><img title="clip_image004" style="display: inline; background-image: none;" border="0" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/4617.clip_image004_thumb_73C76619.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/4617.clip_5F00_image004_5F00_thumb_5F00_73C76619.jpg" width="775" height="367" /></a></p>  <p>2. To confirm I went into the expression and I tried to evaluate it and found the following, see the screenshot. If you see the evaluated string says C:Destination\OneSource….., <b>we are missing the ‘\’ after C:</b></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/7217.clip_image006_5B93D5F1.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/7217.clip_5F00_image006_5F00_5B93D5F1.jpg"><img title="clip_image006" style="display: inline; background-image: none;" border="0" alt="clip_image006" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/0638.clip_image006_thumb_4B385E38.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/0638.clip_5F00_image006_5F00_thumb_5F00_4B385E38.jpg" width="651" height="314" /></a></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/8865.clip_image008_56EDA56A.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/8865.clip_5F00_image008_5F00_56EDA56A.jpg"><img title="clip_image008" style="display: inline; background-image: none;" border="0" alt="clip_image008" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/8764.clip_image008_thumb_41EBFD2A.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/8764.clip_5F00_image008_5F00_thumb_5F00_41EBFD2A.jpg" width="650" height="338" /></a></p>  <p><strong><em></em></strong></p>  <p><strong><font style="background-color: rgb(255, 255, 0);">This did solve some part of the issue, but not the complete problem. Further to it the error still popped up and this time I gave it a closer look.</font></strong></p>  <p>I saw this further and if you see closely, somehow there is a space between the <b><font style="background-color: rgb(0, 255, 0);">“ and C:\\</font>,</b> remove that space in the expression builder. </p>  <p><b><i>&quot; C:\\Destination\\OnesourceReport&quot;+(DT_WSTR, 20) (DT_DBDATE) GETDATE() +&quot;.csv&quot;</i></b></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/8015.clip_image0029_6D501E24.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/8015.clip_5F00_image0029_5F00_6D501E24.jpg"><img title="clip_image002[9]" style="display: inline; background-image: none;" border="0" alt="clip_image002[9]" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/3716.clip_image0029_thumb_3A5067F0.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/3716.clip_5F00_image0029_5F00_thumb_5F00_3A5067F0.jpg" width="655" height="322" /></a></p>    <p><strong><font style="background-color: rgb(255, 255, 0);">Issue Resolved!!</font></strong></p>]]></content:encoded>
    </item>
    <item>
      <title>Error: SQL Azure “Grantor does not have GRANT permission.”</title>
      <link>https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/error-sql-azure-grantor-does-not-have-grant-permission</link>
      <pubDate>Thu, 25 Jul 2013 08:15:51 GMT</pubDate>
      <dc:creator><![CDATA[Tara Shankar Jana]]></dc:creator>
      <guid
        isPermaLink="false">https://qa.msdn.wdslab.com/sql-bi-sap-cloud-crm_all_in_one_place/2013/07/25/error-sql-azure-grantor-does-not-have-grant-permission/</guid>
      <description><![CDATA[SQL Azure has few limitations when it comes to running T-SQL statements against the Azure User...]]></description>
      <content:encoded><![CDATA[<blockquote>   <p>SQL Azure has few limitations when it comes to running T-SQL statements against the Azure User and Master databases. At times when you try to give minimal rights to the users in Azure or even try creating them, you may run into errors, sometimes they are easy to understand and at times absolutely unorthodox.</p>    <p>By now, I am sure you all know that you can’t always use the Azure Portal account to backup, drop, create databases and also it’s not appropriate to use the portal account and password in the connection string as that increases the risk of getting hacked and the whole Azure portal might have to be compromised.</p>    <p>Anyways, here is what I was trying to do, I wanted&#160; to grant the user (Normal user with minimal rights) VIEW DATABASE STATE permission and also add that user to some of the SERVER ROLES and map it to a login. Sounds easy right? Indeed it is;-</p>    <p>So I executed the following statements one after the other (see the context of the query, that’s master). Remember you can only assign LoginManager and DbManager roles to a Non-admin account in SQL Azure, which is enough to carry out quite a few operations.</p>    <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/3618.image_6E9E3CD4.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/3618.image_5F00_6E9E3CD4.png"><img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/3187.image_thumb_21FA0031.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/3187.image_5F00_thumb_5F00_21FA0031.png" width="495" height="110" /></a></p>    <p><strong><em>Query:</em></strong></p>    <p>CREATE LOGIN NONDef WITH PASSWORD = 'Abc$5671983' </p>    <p>CREATE USER NONDef FROM LOGIN NONDef;</p>    <p>EXEC sp_addrolemember 'loginmanager', 'NONDef'; </p>    <p>EXEC sp_addrolemember 'dbmanager', 'NONDef'</p>    <p><strong><em>Result:</em></strong></p>    <p><strong>Command(s) completed successfully.</strong></p>    <p>All the queries executed fine and worked great, then as I wanted to grant the user&#160; SELECT, DELETE, UPDATE, VIEW DATABASE DEFINITION etc. for automating backups exports in SQL Azure and also for doing basic checks on the database, I landed up running the following query:</p>    <p>GRANT ALTER, CONTROL, DELETE, EXECUTE, INSERT, REFERENCES, SELECT, UPDATE, VIEW DEFINITION TO NONDef;</p>    <p><strong>and then the error</strong>, alright I know I was silly to do this, but the error was more sillier than I was, probably we need to handle this better.</p>    <p>&#160;</p>    <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/2134.image_5FA6E7ED.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/2134.image_5F00_5FA6E7ED.png"><img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/5127.image_thumb_50900913.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/5127.image_5F00_thumb_5F00_50900913.png" width="495" height="99" /></a></p>    <p>&#160;</p>    <p>So what did I do wrong here? guesses? Yeah I didn’t change the context of the query to the User Database against which I should have executed this query. Now as you cannot use USE DATABASE in SQL Azure, you can highlight the database (UserDB) and click new query in SSMS</p>    <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/4011.image_7CCC8FF7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/4011.image_5F00_7CCC8FF7.png"><img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/6318.image_thumb_0CF857F1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/6318.image_5F00_thumb_5F00_0CF857F1.png" width="492" height="253" /></a></p>    <p>After that you can execute the same query and it should work JUST FINE.</p>    <p>&#160;</p>    <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/0005.image_363F7A22.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/0005.image_5F00_363F7A22.png"><img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/0535.image_thumb_3898FC20.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/0535.image_5F00_thumb_5F00_3898FC20.png" width="493" height="115" /></a></p>    <p>This is an informational Blog on the error which can be misleading to make sure you do not waste a lot of time troubleshooting this for no odd reason.</p>    <p>SQL Azure is superb! I am loving each and every feature of it and extremely excited about the amount of development going on in this space, exciting times for Microsoft and being an employee of MS, I feel extremely valuable as I get to work on the product directly and see the product mature with time, and Azure’s growth is exponential, tremendous functionalities and great updates every month.</p>    <p>Happy times in Cloud!!!</p></blockquote>]]></content:encoded>
    </item>
    <item>
      <title>SQL Azure: Automated Database Export (Archived Post)- Please use automated-backup built-into Azure SQL Database</title>
      <link>https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/sql-azure-automated-database-export</link>
      <pubDate>Tue, 23 Jul 2013 23:27:27 GMT</pubDate>
      <dc:creator><![CDATA[Tara Shankar Jana]]></dc:creator>
      <guid
        isPermaLink="false">https://qa.msdn.wdslab.com/sql-bi-sap-cloud-crm_all_in_one_place/2013/07/23/sql-azure-automated-database-export/</guid>
      <description><![CDATA[Great news for SQL Azure, looks like the feedback’s been heard. In July’s scheduled updates we...]]></description>
      <content:encoded><![CDATA[<p>Great news for SQL Azure, looks like the feedback’s been heard. In July’s scheduled updates we released some great updates to Windows Azure. One of the enhancements for SQL Azure include:</p>  <p><b><i><font>Support for Automated SQL Export and a New Premium Tier SQL Database option</font> </i></b></p>  <p>One commonly requested feature we’ve heard has been the ability for customers to perform recurring, fully automated, exports of a SQL Database to a Storage account and we always landed up delivering this using custom toolset and SSIS, SSMS. Starting today this is now a built-in feature of Windows Azure.&#160; You can now export transactional-consistent copies of your SQL Databases, in an automated recurring way, to a .bacpac file in a Storage account using any schedule you wish to define.</p>  <p>Here it is, and this is how it looks- <b>“Spread the Word”</b></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/3603.clip_image001_62098CCA.jpg"><img title="clip_image001" border="0" alt="clip_image001" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/3566.clip_image001_thumb_787C2B51.jpg" width="737" height="483" /></a></p>  <p>Also, along with the above option to export, we handed over a New Database Creation wizard as well from Exported DB’s- this is just insane, absolutely exciting-</p>  <p><a href="https://weblogs.asp.net/blogs/scottgu/image_795D6D59.png"><img title="clip_image003" border="0" alt="clip_image003" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/5001.clip_image003_1D2D42C9.gif" width="736" height="237" /></a></p>  <p>Or</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/8117.clip_image004_73D5FACA.jpg"><img title="clip_image004" border="0" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/5751.clip_image004_thumb_10FBA2D5.jpg" width="729" height="365" /></a></p>  <p><b><u>Cost Impact</u></b></p>  <p>When an automated export is performed, Windows Azure will first do a full copy of your database to a temporary database prior to creating the .bacpac file. This is the only way to ensure that your export is transitionally consistent (this database copy is then automatically removed once the export has completed). As a result, you will be charged for this database copy on the day that you run the export. Since databases are charged by the day, if you were to export every day, you could in theory double your database costs.&#160; If you run every week then it would be much less.</p>  <p>If your storage account is in a different region from the SQL Database, you will be charged for network bandwidth.&#160; If your storage account is in the same region there are no bandwidth charges.&#160; You’ll then be charged the standard Windows Azure Storage rate (which is priced in GB saved) for any .bacpac files you retain in your storage account.</p>  <p><b><u>Conditions to set up Automated Export</u></b></p>  <p>Note that in order to set up automated export, Windows Azure has to be allowed to access your database (using the server login name/password you configured in the automated export rule in the screen-shot above) . To enable this, go to the “Configure” tab for your database server and make sure the switch is set to “Yes”:</p>  <p><a href="https://weblogs.asp.net/blogs/scottgu/image_2F61EC67.png"><img title="clip_image006" border="0" alt="clip_image006" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/3323.clip_image006_7C95DD49.gif" width="736" height="107" /></a></p>  <p>&#160;</p>  <h4><u><font>SQL Databases: Announcing New Premium Tier for Windows Azure SQL Databases</font></u></h4>  <p>Today, we’re excited to announce the preview of a new Premium Tier for Windows Azure SQL Databases that delivers more predictable performance for business-critical applications.&#160; The Premium Tier helps deliver more powerful and predictable performance for cloud applications by dedicating a fixed amount of reserved capacity for a database including its built-in secondary replicas. This capability will help you scale databases even better and with more isolation. </p>  <p>Reserved capacity is ideal for cloud-based applications with the following requirements:</p>  <ul>   <li><b>High Peak Load</b> – An application that requires a lot of CPU, Memory, or IO to complete its operations. For example, if a database operation is known to consume several CPU cores for an extended period of time, it is a candidate for using a Premium database. </li> </ul>  <ul>   <li><b>Many Concurrent Requests</b> – Some database applications service many concurrent requests. The normal Web and Business Editions in SQL Database have a limit of 180 concurrent requests. Applications requiring more connections should use a Premium database with an appropriate reservation size to handle the maximum number of needed requests. </li> </ul>  <ul>   <li><b>Predictable Latency</b> – Some applications need to guarantee a response from the database in minimal time. If a given stored procedure is called as part of a broader customer operation, there might be a requirement to return from that call in no more than 20 milliseconds 99% of the time. This kind of application will benefit from a Premium database to make sure that dedicated computing power is available. </li> </ul>  <p>To help you best assess the performance needs of your application and determine if your application might need reserved capacity, our Customer Advisory Team has put together detailed guidance. Read the <a href="https://msdn.microsoft.com/en-us/library/windowsazure/dn369873.aspx">Guidance for Windows Azure SQL Database premium whitepaper</a> for tips on how to continually tune your application for optimal performance and how to know if your application might need reserved capacity. Additionally, our engineers have put together a whitepaper, <a href="https://msdn.microsoft.com/en-us/library/windowsazure/ff394116.aspx">Managing Premium Databases</a>, on how to setup, use and manage your new premium database once you are accepted into the Premium preview and quota is approved. </p>  <p>Requesting an invitation to the reserved capacity preview requires two steps:</p>  <ol>   <li>Visit the <a href="https://www.windowsazure.com/en-us/services/preview/">Preview Features</a> page to request access to the Premium preview program. Initial acceptance requires customers with active, paid Windows Azure subscriptions and account administrator responsibility. </li>    <li>Once your subscription has been activated for the preview program, request a Premium database quota from either the server dashboard or server quickstart in the SQL Databases extension of the Windows Azure Management Portal. </li> </ol>  <p>For a closer look at signing up for the Premium preview, please review the short tutorial page, <a href="https://go.microsoft.com/fwlink/?LinkID=308949">Sign up for Premium preview for Windows Azure SQL Database</a>.&#160; For more details on Premium for SQL Database pricing, please visit the <a href="https://www.windowsazure.com/en-us/pricing/details/sql-database/">Windows Azure SQL Database pricing page</a>. </p>  <p><strong>NOTE: </strong>There are some more changes to the Traffic manager which is now included in the Windows Azure Portal as well. Will write about it in next blog probably.</p>  <p>Happy times in the cloud !!!</p>]]></content:encoded>
    </item>
    <item>
      <title>Optimal SQL MaxServerMemory Setting TSQL- All Versions (SQL 2005/SQL 2008/R2/ SQL 2012/SQL 2014CTP1)</title>
      <link>https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/optimal-sql-maxservermemory-setting-tsql-all-versions-sql-2005sql-2008r2-sql-2012sql-2014ctp1</link>
      <pubDate>Mon, 01 Jul 2013 22:07:00 GMT</pubDate>
      <dc:creator><![CDATA[Tara Shankar Jana]]></dc:creator>
      <guid
        isPermaLink="false">https://qa.msdn.wdslab.com/sql-bi-sap-cloud-crm_all_in_one_place/2013/07/01/optimal-sql-maxservermemory-setting-tsql-all-versions-sql-2005sql-2008r2-sql-2012sql-2014ctp1/</guid>
      <description><![CDATA[I created a script sometime back for finding optimal MaxServerMemory setting using&nbsp;TSQL...]]></description>
      <content:encoded><![CDATA[<p>I created a script sometime back for finding optimal MaxServerMemory setting using&nbsp;TSQL automation script, I have and some of you have used it for initial analysis. The script used to find the buffer distribution, followed by Lock Memory, SQL Cache memory, Optimizer memory etc. and based on that the MaxServermemory used to be calculated.</p>
<p>Now in SQL 2012 as &lsquo;SQL Server Buffer&rsquo; is now a client of SQL Server Memory Manager, the whole calculation falls wrong as per what we achieved in the previous script. <strong>Thanks to Matt Lavery and John Balke</strong>&nbsp;for pointing this out and encouraging to re-write the whole logic flow again, especially as per best practices. As I got sometime this week I landed up writing the new OptimalMaxServerMemory TSQL based on the following logic:</p>
<p>The Script works for SQL 2014 CTP1 as well and as we move to more of T-Shirt sizing for memory distribution and management (mostly what SAP does), I believe sticking to the following 2 points would help in determining the memory configurations optimally.</p>
<p>&nbsp;</p>
<p><strong>MaxServerMemory Optimal (For Initial settings)=</strong></p>
<ul>
<li>Reserve 1 GB of RAM for the OS,</li>
<li>1 GB for each 4 GB of RAM installed from 4&ndash;16 GB,</li>
<li>1 GB for every 8 GB RAM installed above 16 GB RAM.</li>
<li>This has typically worked out well for servers that are <strong>dedicated to SQL Server.</strong></li>
</ul>
<p><strong>Note:</strong> I am further working to evaluate the Logic flow as per the following (MaxServerMemory Optimal (Final)) and will incorporate that into the script soon</p>
<p>Though, at the mean time you all can use the following to fix the MaxServerMemory Setting. Use the first script to get going and then based on the calculation further in the Final settings, set the appropriate MaxServerMemory. Comments and feedback are welcome.</p>
<p><strong></strong>&nbsp;</p>
<p><strong>MaxServerMemory Optimal (Final)=</strong></p>
<ul>
<li>"((Total system memory) &ndash; (memory for thread stack) &ndash; (OS memory requirements ~ 2-4GB) &ndash; (memory for other applications) - (memory for multipage allocations; SQLCLR, linked servers, etc)),</li>
<li>Where the memory for thread stack = ((maxworker threads) *(stack size)) and the stack size is 512KB for x86 systems, 2MB for x64 systems and 4MB for IA64 systems.</li>
<li>The value for 'max worker threads' can be found in the max_worker_count column of sys.dm_os_sys_info "</li>
</ul>
<p>&nbsp;</p>
<p>Attached is the Optimization Script: PFA: "OptimalMaxServerMemory_New_Multi-Version.sql"</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/10/43/09/92/OptimalMaxServerMemory_New_Multi-Version.sql" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-43-09-92/OptimalMaxServerMemory_5F00_New_5F00_Multi_2D00_Version.sql">OptimalMaxServerMemory_New_Multi-Version.sql</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Yellow Icon on the Plan Guides what does it mean?</title>
      <link>https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/yellow-icon-on-the-plan-guides-what-does-it-mean</link>
      <pubDate>Thu, 03 Jan 2013 08:09:57 GMT</pubDate>
      <dc:creator><![CDATA[Tara Shankar Jana]]></dc:creator>
      <guid
        isPermaLink="false">https://qa.msdn.wdslab.com/sql-bi-sap-cloud-crm_all_in_one_place/2013/01/03/yellow-icon-on-the-plan-guides-what-does-it-mean/</guid>
      <description><![CDATA[One of my friend asked me about the “Yellow exclamation icon” on the Plan Guides and was curious to...]]></description>
      <content:encoded><![CDATA[<p>One of my friend asked me about the “Yellow exclamation icon” on the Plan Guides and was curious to know if this is something to be worried about.</p>  <p>&#160;</p>  <p>&#160;</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/7446.clip_image002_2CFEB5BB.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/7446.clip_5F00_image002_5F00_2CFEB5BB.jpg"><img title="clip_image002" style="display: inline; background-image: none;" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/54/63/metablogapi/2337.clip_image002_thumb_39202FE2.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-54-63-metablogapi/2337.clip_5F00_image002_5F00_thumb_5F00_39202FE2.jpg" width="367" height="332" /></a></p>  <p>&#160;</p>  <p>As I wasn’t too sure of what it meant I thought of finding it myself and hence looked through the SQL CODE and figured out that; this is just a bad choice of icon or a point we want to make that you are using a plan guide (which explains the yellow warning sign). This is just an icon for plan guides and the yellow warning sign is nothing but part of the entire icon (“plan_guide_enabled.ico”)</p>  <p>Hence till the time <strong>sys.fn_validate_plan_guide</strong> does not report any error , there is nothing to worry about .</p>]]></content:encoded>
    </item>
    <item>
      <title>SSL Security error [DBNETLIB]ConnectionOpen (SECDoClientHandshake())</title>
      <link>https://docs.microsoft.com/archive/blogs/sql-bi-sap-cloud-crm_all_in_one_place/ssl-security-error-dbnetlibconnectionopen-secdoclienthandshake</link>
      <pubDate>Sun, 12 Aug 2012 23:00:44 GMT</pubDate>
      <dc:creator><![CDATA[Tara Shankar Jana]]></dc:creator>
      <guid
        isPermaLink="false">https://qa.msdn.wdslab.com/sql-bi-sap-cloud-crm_all_in_one_place/2012/08/12/ssl-security-error-dbnetlibconnectionopen-secdoclienthandshake/</guid>
      <description><![CDATA[This particular resolution is one of its own kind their could have been other possibilites for his...]]></description>
      <content:encoded><![CDATA[<div class="post-body entry-content">This particular resolution is one of its own kind their could have been other possibilites for his error message to raise, generally it comes if you have Expired Certificates or invalid Certificates on the Server for the user account or the computer account, delete the unwanted Certificates on the server and then try to start SQL or Connect should work<br /><br />Other times this message comes if you had encryption enabled for the Server sometime but no more now, but then internally we are still finding the certificate somehow, though you anyways dont need the SSL certificate, so go to the following Registry and check for the Certificate value it should be EMPTY, but if it has ThumbPrint value of the Certifcate it is a problem, go ahead and make the change for Certificate value set to 0<br /><br />HKLM\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\SuperSocketNetLib REG_SZ Certificate=0<br /><br />Coming back to this unique problem:<br /><br /><strong>Problem Description:<br />=================<br /></strong>Trying to enable SSL encryption for sql server connections on server<br />Went through the steps detailed in article 276553 (<a href="https://support.microsoft.com/?id=276553" mce_href="https://support.microsoft.com/?id=276553"><span style="color: #6699cc;" color="#6699cc">https://support.microsoft.com/?id=276553</span></a>).<br /><br />From one client we were unable to connect to the SQL Server 2000 using encrypted connections {forced encryption from the Client configuration, this client box where its working is a Windows 2003 SP1 box}. From our own desktop workstation {Windows XP sp2}, along with that of one of the other Clients box {Windows 2000} they are unable to connect to the SQL Server through encrypted connections.<br /><br />Consistently receive the following error:</div>
<div class="post-body entry-content"><br /><span style="color: #ff0000;">[DBNETLIB]SSL Security error[DBNETLIB]ConnectionOpen (SECDoClientHandshake()).</span></div>
<div class="post-body entry-content">&nbsp;</div>
<div class="post-body entry-content">We have checked and re-checked and re-re-checked that his local workstation trusts the same root certificate authority (plus all intermediary issuing authorities) as does the SQL Server</div>
<div class="post-body entry-content">The certificate chains are identical on both machines.<br /><br />We Enabled odbc tracing and attempted to login again from his local box. The log of that attempt is enclosed. It contains the following information:<br /><br />osql -Sact-dd01 2764-1a88 EXIT SQLDriverConnectW with return code -1</div>
<div class="post-body entry-content">&nbsp;</div>
<div class="post-body entry-content"><span style="color: #ff0000;">(SQL_ERROR) HDBC 009A1830 HWND 00000000 WCHAR * 0x74329A38 [ -3] "******\ 0" SWORD -3 WCHAR * 0x74329A38 SWORD 2 SWORD * 0x00000000 UWORD 0 </span><sql_driver_noprompt><br />DIAG [08001] [Microsoft][ODBC SQL Server Driver][DBNETLIB]SSL Security error (18)<br />DIAG [01000] [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (SECDoClientHandshake()). (271)</sql_driver_noprompt></div>
<div class="post-body entry-content"><sql_driver_noprompt>Operating System:Windows 2003 : where the Encrypted Client connections are working<br />Operating System: Windows XP Sp2 and Windows 2000 SP4 where the Client connections are not working using Encryption, though if the encryption is not enabled the connections will flow fine<br /><br /><br /><strong>Cause<br />=====</strong><br />The cause is a DBNETLIB.DLL {Remember this is not a COM DLL}, the version compatibility of this DLL on the XP and Windows 2000 is the possible culprit, i dont think it is a BUG<br /><br /><strong>Resolution</strong><br />========<br /></sql_driver_noprompt></div>
<div class="post-body entry-content"><span style="color: #0000ff;">1) Check the for the following DLL's version on the Windows 2003 SP1 or SP2 Box</span></div>
<div class="post-body entry-content">&nbsp;</div>
<div class="post-body entry-content"><span style="color: #ff0000;">C:\WINDOWS\system32\DBNETLIB.DLL</span><br /><span style="color: #ff0000;">Version: 2000.86.1830.0 {Windows 2003 SP1}</span><br /><br /><span style="color: #0000ff;">2) Now Check the Version for the same DLL on the Windows XP Sp2 and Windows 2000 Sp4 box . In My case the Windows XP SP2 had the following version of the <strong>DBNETLIB.DLL Version: 2000.85.1117.0</strong></span><br /><br /><span style="color: #0000ff;">3) The Windows 2000 SP4 box had the follwoing DLL version in my case Version: 2000.85.1064.0</span><br /><br /><span style="color: #0000ff;">4) So what i did was, i copied the DLL Version: 2000.86.1830.0 from the Windows 2003 SP1 box to the Windows Xp SP2 box and also to the Windows 2000 SP4 Box</span><br /><br /><span style="color: #0000ff;">Went to the following location on the Windows XP Sp2 box:</span></div>
<div class="post-body entry-content"><span style="color: #0000ff;">C:\windows\system32 and renamed the existing DBNETLIB.DLL to DBNETLIB.DLL.OLD</span><br /><span style="color: #0000ff;">After that pasted the copied DLL version 2000.86.1830.0 on the XP Sp2 box in the following location c:\windows\system32\DBNETLIB.DLL {2000.86.1830.0} after that did a refresh and saw that the Version got back to the older version that is 2000.85.1117.0. Made a check in the DLLCACHE {c:\windows\system32\DLLCACHE} and saw that the DBNETLIB.DLL was present there and was having the Version 2000.85.1117.0 {so whenever the connection was made, this DLL from the cache was picked}, hence First paste the DBNETLIB.DLL {with version 2000.86.1830.0} in the DLLCACHE and then replace the actual DLL inside the c:\windows\system32.</span><br /><br /><span style="color: #0000ff;">Do a refresh and see if the DLL version is Showing as 2000.86.1830.0 on the XP Sp2 Box.</span></div>
<div class="post-body entry-content"><span style="color: #0000ff;">After this again try to connect to the SQL Server from this Client box {Make sure that Force Encryption is Checked in the Client Configuration}</span><br /><br /><span style="color: #0000ff;">The above resolved the issue with the SSL encryption errors, and the Secured channel is established</span><br /><br /><span style="color: #0000ff;">5) Repeat the above Steps for a Windows 2000 SP4 box, and this should help in getting past through the problem</span><br /><br /><span style="color: #0000ff;">NOTE: Never try to Register this DLL, also it wont let you as well, as it is not a COM DLL, also replacing this DLL will never break anything as it is a System DLL and the version is upgraded through MDAC</span></div>]]></content:encoded>
    </item>
  </channel>
</rss>