<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ali Raza Zaidi</title>
	<atom:link href="http://www.alirazazaidi.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alirazazaidi.com</link>
	<description>BizTalk,.Net.T-SQL,  SSIS, SSAS, SSRS  Blog</description>
	<lastBuildDate>Tue, 07 Feb 2012 13:01:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>T-SQL: How to do SQL Server paging with ROW_NUMBER()?</title>
		<link>http://www.alirazazaidi.com/t-sql-how-to-do-sql-server-paging-with-row_number/</link>
		<comments>http://www.alirazazaidi.com/t-sql-how-to-do-sql-server-paging-with-row_number/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 13:01:55 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://www.alirazazaidi.com/?p=547</guid>
		<description><![CDATA[DECLARE @PageNum AS INT; DECLARE @PageSize AS INT; SET @PageNum = 2; SET @PageSize = 10; WITH OrdersRN AS ( SELECT ROW_NUMBER() OVER(ORDER BY DimProduct.ProductKey) AS RowNum, DimProduct.ProductKey, DimProduct.EnglishProductName as Product, DimProductSubcategory.ProductSubcategoryKey as SubCategoryKey, DimProductSubcategory.EnglishProductSubcategoryName as SubCategory, DimProductCategory.ProductCategoryKey as CategoryKey, DimProductCategory.EnglishProductCategoryName as Category FROM DimProduct INNER JOIN DimProductSubcategory ON DimProduct.ProductSubcategoryKey = DimProductSubcategory.ProductSubcategoryKey INNER JOIN DimProductCategory [...]]]></description>
			<content:encoded><![CDATA[<p></p><pre>DECLARE @PageNum AS INT;
DECLARE @PageSize AS INT;
SET @PageNum = 2;
SET @PageSize = 10;

WITH OrdersRN AS
(

SELECT     ROW_NUMBER() OVER(ORDER BY DimProduct.ProductKey) AS RowNum,
 DimProduct.ProductKey,
           DimProduct.EnglishProductName as Product,
           DimProductSubcategory.ProductSubcategoryKey as SubCategoryKey,
           DimProductSubcategory.EnglishProductSubcategoryName as SubCategory,
           DimProductCategory.ProductCategoryKey as CategoryKey,
           DimProductCategory.EnglishProductCategoryName  as Category
FROM         DimProduct INNER JOIN
                      DimProductSubcategory ON DimProduct.ProductSubcategoryKey = DimProductSubcategory.ProductSubcategoryKey INNER JOIN
                      DimProductCategory ON DimProductSubcategory.ProductCategoryKey = DimProductCategory.ProductCategoryKey
                   )
                      SELECT *
FROM OrdersRN
WHERE RowNum BETWEEN (@PageNum - 1) * @PageSize + 1
      AND @PageNum * @PageSize
ORDER BY ProductKey;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/t-sql-how-to-do-sql-server-paging-with-row_number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get list of tables in Database TSQL</title>
		<link>http://www.alirazazaidi.com/how-to-get-list-of-tables-in-database-tsql/</link>
		<comments>http://www.alirazazaidi.com/how-to-get-list-of-tables-in-database-tsql/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 12:36:31 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://www.alirazazaidi.com/?p=544</guid>
		<description><![CDATA[You can use the list down all tables in specific database with this query select TABLE_NAME from information_schema.tables where Table_Type = 'BASE TABLE' &#160;]]></description>
			<content:encoded><![CDATA[<p></p><p>You can use the list down all tables in specific database with this query</p>
<pre>select TABLE_NAME from information_schema.tables where Table_Type = 'BASE TABLE'</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/how-to-get-list-of-tables-in-database-tsql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using WITH (NOLOCK) in T-SQL?</title>
		<link>http://www.alirazazaidi.com/using-with-nolock-in-t-sql/</link>
		<comments>http://www.alirazazaidi.com/using-with-nolock-in-t-sql/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 12:32:53 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://www.alirazazaidi.com/?p=541</guid>
		<description><![CDATA[Nolock is T-Sql hint, That used to ignore the locks on table during transactions. It allows retrieving data and did not wait to complete the transaition applied on table. It has some pros can cons Pros: NoLock provides significant improvements on large table, where upserts commands take time. You can retirve data during the same [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Nolock is T-Sql hint, That used to ignore the locks on table during transactions. It allows retrieving data and did not wait to complete the transaition applied on table. It has some pros can cons</p>
<p>Pros:</p>
<ul>
<li>NoLock provides significant improvements on large table, where upserts commands take time.</li>
<li>You can retirve data during the same time while others are performing Insert and update on table.</li>
</ul>
<p>Cons:</p>
<ul>
<li>Possibility of data that was partially updated or inserted, because you retrieve data during update or insert on table.</li>
<li>It often results in very obscure, hard to reproduce bugs and can cause data to get corrupted.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/using-with-nolock-in-t-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create SSIS Package Configuration in SQL server 2008</title>
		<link>http://www.alirazazaidi.com/how-to-create-ssis-package-configuration-in-sql-server-2008/</link>
		<comments>http://www.alirazazaidi.com/how-to-create-ssis-package-configuration-in-sql-server-2008/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 07:11:22 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[SQL Server Integration Services]]></category>

		<guid isPermaLink="false">http://www.alirazazaidi.com/?p=530</guid>
		<description><![CDATA[There will be change possible of server name at connection strings, file paths when deploying SSIS packages  in production and same issue appears  when ssis package will go from development environment to QA server for testing. So what is workaround.  SSIS configuration wizard allow us to generate configuration settings for  connection string and properties of [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>There will be change possible of server name at connection strings, file paths when deploying SSIS packages  in production and same issue appears  when ssis package will go from development environment to QA server for testing. So what is workaround.  SSIS configuration wizard allow us to generate configuration settings for  connection string and properties of other objects. And this allows us to update these settings at run time at any place, dev, QA or Production.</p>
<p>&nbsp;</p>
<p>Benfites</p>
<ul>
<li>This way we can resolve the connection strings on runtime.</li>
<li>Easily update the application on different server without redeploying the application.</li>
<li>Change the behavior of Package at runtime, by update the configuration settings of variables.</li>
</ul>
<p>&nbsp;</p>
<p>Let see how we can do this</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/02/11.png"><img class="aligncenter size-medium wp-image-531" title="1" src="http://www.alirazazaidi.com/wp-content/uploads/2012/02/11-259x300.png" alt="" width="259" height="300" /></a></p>
<p>&nbsp;</p>
<p>Open the package for which you want to generation configuration</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/02/21.png"><img class="aligncenter size-full wp-image-532" title="2" src="http://www.alirazazaidi.com/wp-content/uploads/2012/02/21.png" alt="" width="400" height="241" /></a></p>
<p>Check the enable button.<br />
<a href="http://www.alirazazaidi.com/wp-content/uploads/2012/02/31.png"><img class="aligncenter size-full wp-image-533" title="3" src="http://www.alirazazaidi.com/wp-content/uploads/2012/02/31.png" alt="" width="400" height="306" /></a><br />
Click on enable button. To start Wizard<br />
<a href="http://www.alirazazaidi.com/wp-content/uploads/2012/02/4.png"><img class="aligncenter size-full wp-image-534" title="4" src="http://www.alirazazaidi.com/wp-content/uploads/2012/02/4.png" alt="" width="400" height="372" /></a><br />
From the above configuration type dialogue box, Specify the configuration type and then set the property types relevant to the configuration type.</p>
<p>Configuration type source can be</p>
<ul>
<li>XML Configuration file</li>
<li>Environment Variable</li>
<li>Registry Entry</li>
<li>SQL server</li>
</ul>
<p>Specify the configuration file name and then say next then you will get the following dialogue box<br />
Select the object and properties you want in configuration file.</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/02/5.png"><img class="aligncenter size-full wp-image-535" title="5" src="http://www.alirazazaidi.com/wp-content/uploads/2012/02/5.png" alt="" width="400" height="333" /></a><br />
&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Press next and then press finish button.<br />
<a href="http://www.alirazazaidi.com/wp-content/uploads/2012/02/6.png"><img class="aligncenter size-full wp-image-536" title="6" src="http://www.alirazazaidi.com/wp-content/uploads/2012/02/6.png" alt="" width="400" height="318" /></a><br />
&nbsp;</p>
<p>&nbsp;</p>
<p>You can open the created file with extension “dtsConfig” in notepad, notepad++ , visual studio or any text editor supports xml to update the required filed.</p>
<p>&nbsp;<br />
<a href="http://www.alirazazaidi.com/wp-content/uploads/2012/02/7.png"><img class="aligncenter size-full wp-image-537" title="7" src="http://www.alirazazaidi.com/wp-content/uploads/2012/02/7.png" alt="" width="400" height="193" /></a><br />
Configurations are included in when you create package deployment utility for Installing packages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/how-to-create-ssis-package-configuration-in-sql-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BizTalk Interview Advice</title>
		<link>http://www.alirazazaidi.com/biztalk-interview-advice/</link>
		<comments>http://www.alirazazaidi.com/biztalk-interview-advice/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 18:59:06 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[Biztalk 2010]]></category>

		<guid isPermaLink="false">http://www.alirazazaidi.com/?p=528</guid>
		<description><![CDATA[&#160; Excellent article from Seroter. http://seroter.wordpress.com/2007/07/27/biztalk-interview-advice/]]></description>
			<content:encoded><![CDATA[<p></p><p>&nbsp;</p>
<p>Excellent article from Seroter.</p>
<p><a href="http://seroter.wordpress.com/2007/07/27/biztalk-interview-advice/">http://seroter.wordpress.com/2007/07/27/biztalk-interview-advice/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/biztalk-interview-advice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Primary SSO Server &#8221; failed. Cannot perform encryption or decryption</title>
		<link>http://www.alirazazaidi.com/primary-sso-server-failed-cannot-perform-encryption-or-decryption/</link>
		<comments>http://www.alirazazaidi.com/primary-sso-server-failed-cannot-perform-encryption-or-decryption/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 13:03:56 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[Biztalk 2010]]></category>
		<category><![CDATA[BizTalk Errors]]></category>

		<guid isPermaLink="false">http://www.alirazazaidi.com/?p=526</guid>
		<description><![CDATA[I face an error while creation file location at my personal computer for Could not store transport type data for Primary Transport of Send Port &#8216;SendPort1&#8242; to config store. Primary SSO Server &#8216;ALIRAZA-PC&#8217; failed. Cannot perform encryption or decryption because the secret is not available from the master secret server. See the event log (on [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I face an error while creation file location at my personal computer for</p>
<blockquote><p>Could not store transport type data for Primary Transport of Send Port &#8216;SendPort1&#8242; to config store. Primary SSO Server &#8216;ALIRAZA-PC&#8217; failed. Cannot perform encryption or decryption because the secret is not available from the master secret server. See the event log (on computer &#8216;ALIRAZA-PC&#8217;) for related errors.<br />
(Microsoft.BizTalk.ExplorerOM)</p></blockquote>
<p>After doing google i found following solution.</p>
<p>REASON:<br />
&#8212;&#8212;-<br />
Maybe someone had reset the service account password or any other cause.</p>
<p>&#8212;&#8212;&#8212;<br />
SOLUTION:<br />
&#8212;&#8212;&#8212;</p>
<p>If you get this SSO error:<br />
Cannot perform encryption or decryption because the secret is not available from the master secret server, do the following steps:<br />
1. Open command prompt:<br />
2. Go to<strong><span> c:\program files\common files\enterprise single sign-on\<br />
</span></strong>type: <strong>ssoconfig</strong> -restoresecret SSO9F54.bak (the sso back up file created at the time of biztalk configuration)<br />
3) Give the valid password</p>
<p>4)On success, type: <strong>ssoconfig</strong> -backupsecret latestbackup.dat<br />
Give a password, and perform them successfully to take the backup of latest sso config file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/primary-sso-server-failed-cannot-perform-encryption-or-decryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Distinguished vs. Promoted Properties</title>
		<link>http://www.alirazazaidi.com/distinguished-vs-promoted-properties/</link>
		<comments>http://www.alirazazaidi.com/distinguished-vs-promoted-properties/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 10:38:22 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[Biztalk 2010]]></category>

		<guid isPermaLink="false">http://www.alirazazaidi.com/?p=522</guid>
		<description><![CDATA[There are two ways to get content of message specified filed directly in BizTalk in message. Distinguished fields and Promoted property.   Distinguished fields/properties When you need to access  the content of filed only in orchestration level prefer Distinguished fields. Distinguished fields are xpath equivalent and these xpath stored insisted XSD.  Due these fields are [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>There are two ways to get content of message specified filed directly in BizTalk in message.</p>
<p>Distinguished fields and Promoted property.</p>
<p><strong> </strong></p>
<p><strong>Distinguished fields/properties</strong></p>
<p>When you need to access  the content of filed only in orchestration level prefer Distinguished fields. Distinguished fields are xpath equivalent and these xpath stored insisted XSD.  Due these fields are xpath equivalent these are light weight. There are no restriction of size of filed.  There is common practice to use Distinguished properties instead of xpath, if any change in namespace of any schema, all xpath on the schema used in orchestration are lost. If you used distinguished properties then on update of target namespace all , distinguished proprieties also update and there will no change in orchestration.</p>
<p>When to use distinguished fields:</p>
<p>If you make decision, read values, update values of any message inside the orchestration Use distinguished properties.</p>
<p><strong>Promoted Properties:</strong></p>
<p>When required value of filed at port level then used Promoted properties. These Usually used for Routing purposes. When we promoted any field in Schema, these fields stored in separated Schema, known as Property schema. These have performance over head, due to these promoted values stored in Message box.  There is also restriction on Size of promoted properties the field size should not be exceed more the 256 character.</p>
<p>When to use Promoted Properties:</p>
<p>- Routing</p>
<p>- Tracking</p>
<p>- Correlating</p>
<p>- Driving built in pipeline component behavior</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/distinguished-vs-promoted-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to run apache server and ii7 simultaneously   same time on window 7</title>
		<link>http://www.alirazazaidi.com/how-to-run-apache-server-and-ii7-simultaneously-same-time-on-window-7/</link>
		<comments>http://www.alirazazaidi.com/how-to-run-apache-server-and-ii7-simultaneously-same-time-on-window-7/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 05:21:44 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>

		<guid isPermaLink="false">http://www.alirazazaidi.com/?p=517</guid>
		<description><![CDATA[In my personal machine, I installed the ii7, same time I required XAMP for php, Problem is that ii7 and apache server both occupied the same port 80 by default. Apache is stop running on my machine. So I decide to change the default port of XAMP to something else I follow the following steps [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>In my personal machine, I installed the ii7, same time I required XAMP for php, Problem is that ii7 and apache server both occupied the same port 80 by default. Apache is stop running on my machine. So I decide to change the default port of XAMP to something else I follow the following steps to fix this issue.</p>
<ul>
<li>Stop the XAMP server.</li>
<li>httpd.conf” is the file where apache configuration are placed.</li>
<li>Open the &lt;drive&gt;:\xampp\apache\conf folder and edit the httpd.conf” file.</li>
</ul>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/02/1.png"><img class="alignnone size-medium wp-image-518" title="1" src="http://www.alirazazaidi.com/wp-content/uploads/2012/02/1-300x126.png" alt="" width="300" height="126" /></a></p>
<ul>
<li>In Configuration file at line 47 you find the port 80 mentioned.</li>
<li>Listen 80</li>
</ul>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/02/2.png"><img class="alignnone size-medium wp-image-519" title="2" src="http://www.alirazazaidi.com/wp-content/uploads/2012/02/2-300x94.png" alt="" width="300" height="94" /></a></p>
<ul>
<li>o Change this to Listen 8082</li>
<li> Now goes to Line 178  ServerName localhost:80</li>
</ul>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/02/3.png"><img class="alignnone size-medium wp-image-520" title="3" src="http://www.alirazazaidi.com/wp-content/uploads/2012/02/3-300x191.png" alt="" width="300" height="191" /></a></p>
<ul>
<li>Change it to ServerName localhost:8082</li>
<li>Save the config file and restart the XAMPP server.</li>
<li>Hope fully this solve the problem.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/how-to-run-apache-server-and-ii7-simultaneously-same-time-on-window-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to write a tab delimited text file using C#.net</title>
		<link>http://www.alirazazaidi.com/how-to-write-a-tab-delimited-text-file-using-c-net/</link>
		<comments>http://www.alirazazaidi.com/how-to-write-a-tab-delimited-text-file-using-c-net/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 16:47:38 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.alirazazaidi.com/?p=514</guid>
		<description><![CDATA[Use following Code StreamReader sr = new StreamReader(@"d:\simpleTabDelimeterFile.txt"); StreamWriter outputFile = new StreamWriter(@"d:\out.txt"); string strline = ""; string[] _values = null; while (!sr.EndOfStream) { strline = sr.ReadLine(); _values = strline.Split('\t'); if( _values.Length == 3 ) { strline = _values[0] + '\t' + _values[1] + '\t' + _values[2]; outputFile.WriteLine(strline); } } sr.Close(); outputFile.Close();]]></description>
			<content:encoded><![CDATA[<p></p><pre>Use following Code</pre>
<blockquote>
<pre></pre>
<pre>StreamReader sr = new StreamReader(@"d:\simpleTabDelimeterFile.txt");
                StreamWriter outputFile = new StreamWriter(@"d:\out.txt");
                string strline = "";            

                string[] _values = null;
                while (!sr.EndOfStream)
                {
                    strline = sr.ReadLine();
                    _values = strline.Split('\t');
                    if( _values.Length == 3 )
                    {
                        strline = _values[0] + '\t' + _values[1] + '\t' + _values[2];
                        outputFile.WriteLine(strline);
                    }
                }
                sr.Close();
                outputFile.Close();</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/how-to-write-a-tab-delimited-text-file-using-c-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drill Down Report SSRS with the Visibility Property</title>
		<link>http://www.alirazazaidi.com/drill-down-report-ssrs-with-the-visibility-property/</link>
		<comments>http://www.alirazazaidi.com/drill-down-report-ssrs-with-the-visibility-property/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 13:04:56 +0000</pubDate>
		<dc:creator>Ali Raza Zaidi</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[Sql server reporting services]]></category>
		<category><![CDATA[Drill Down Reports]]></category>

		<guid isPermaLink="false">http://www.alirazazaidi.com/?p=498</guid>
		<description><![CDATA[Too the point, opens your Reporting Services project in BIDS and add report menu.  The database is used in report can be download from here http://tsql.solidq.com/books/tsqlfund2008/ &#160; &#160; &#160; Select new report like as After creating new report you have to add new dataset form data source panel. In Dataset Properties window you have to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Too the point, opens your Reporting Services project in BIDS and add report menu.  The database is used in report can be download from here</p>
<p><a href="http://tsql.solidq.com/books/tsqlfund2008/">http://tsql.solidq.com/books/tsqlfund2008/</a></p>
<p>&nbsp;<br />
<a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/menu.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/menu.png" alt="" title="menu" width="292" height="121" class="aligncenter size-full wp-image-499" /></a><br />
&nbsp;</p>
<p>&nbsp;</p>
<p>Select new report like as</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/New-Report.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/New-Report-300x188.png" alt="" title="New Report" width="300" height="188" class="aligncenter size-medium wp-image-500" /></a></p>
<p>After creating new report you have to add new dataset form data source panel.</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/NewMenuList.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/NewMenuList.png" alt="" title="NewMenuList" width="276" height="209" class="aligncenter size-full wp-image-501" /></a></p>
<p>In Dataset Properties  window you have to use dataset from already created and shared dataset or create new one which is embedded into you report, I select the embedded option.</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/CreatingNewDataSet.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/CreatingNewDataSet-296x300.png" alt="" title="CreatingNewDataSet" width="296" height="300" class="aligncenter size-medium wp-image-502" /></a></p>
<p>For data source I used already created and shared data source for local instance of Sql server</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/DataSource.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/DataSource-300x263.png" alt="" title="DataSource" width="300" height="263" class="alignnone size-medium wp-image-503" /></a></p>
<p>I add the following Query for report creation.</p>
<blockquote><p>SELECT P.productId,p.Productname,p.CategoryId,P.unitPrice,c.categoryId, c.categoryName,s.companyname,s.ContactName,s.Address,s.City FROM production.products as p<br />
INNER JOIN   production.Suppliers s</p>
<p>ON p.supplierid = s.supplierid</p>
<p>INNER JOIN Production.Categories c<br />
ON C.categoryId = p.categoryId</p></blockquote>
<p>Add a new table on report designer area</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/New-table.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/New-table-300x101.png" alt="" title="New table" width="300" height="101" class="alignnone size-medium wp-image-504" /></a></p>
<p>Right click on report  design area and Table form .  and drop fields  like follow.</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Drag-and-Drop-fields.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Drag-and-Drop-fields-300x103.png" alt="" title="Drag and Drop fields" width="300" height="103" class="alignnone size-medium wp-image-505" /></a></p>
<p>When I click on preview button, I found following report.</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Running-Report-should-look-like.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Running-Report-should-look-like.png" alt="" title="Running Report should look like" width="357" height="390" class="aligncenter size-full wp-image-506" /></a></p>
<p>Now on design pane.  Right click on report and add new parent group as</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Add-Group.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Add-Group.png" alt="" title="Add Group" width="338" height="193" class="aligncenter size-full wp-image-507" /></a></p>
<p>Select CategoryName as Group header.</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Parent-Category-Added.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Parent-Category-Added-300x148.png" alt="" title="Parent Category Added" width="300" height="148" class="aligncenter size-medium wp-image-508" /></a></p>
<p>Now go at the bottom of report </p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Group-for-visity-selection.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Group-for-visity-selection-300x75.png" alt="" title="Group for visity selection" width="300" height="75" class="aligncenter size-medium wp-image-509" /></a></p>
<p>Select the visibility selection  from Group and select display options as follow.</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Visitity-Selection.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Visitity-Selection-300x247.png" alt="" title="Visitity Selection" width="300" height="247" class="aligncenter size-medium wp-image-510" /></a><br />
Press ok and click on preview button, Report should be look like as<br />
<a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Drill-down.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Drill-down-300x204.png" alt="" title="Drill down" width="300" height="204" class="aligncenter size-medium wp-image-511" /></a></p>
<p>Now click on + sign The report will open like as</p>
<p><a href="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Drilled.png"><img src="http://www.alirazazaidi.com/wp-content/uploads/2012/01/Drilled-300x218.png" alt="" title="Drilled" width="300" height="218" class="aligncenter size-medium wp-image-512" /></a></p>
<p>Nice starting point  cheers <img src='http://www.alirazazaidi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.alirazazaidi.com/drill-down-report-ssrs-with-the-visibility-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

