<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>SQL Server Forum Support Team</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/sqlforum/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/sqlforum/feed.xml</link>
    <description>We are a support force in Microsoft SQL Server forums, striving to help individuals, developers and customers address their technical pains on SQL Server.</description>
    <lastBuildDate>Wed, 08 Apr 2015 15:02:22 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>SQL Server Community FAQs eBook download</title>
      <link>https://docs.microsoft.com/archive/blogs/sqlforum/sql-server-community-faqs-ebook-download</link>
      <pubDate>Thu, 09 Jun 2011 23:23:00 GMT</pubDate>
      <dc:creator><![CDATA[SQL Server Forum Support Team]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sqlforum/2011/06/09/sql-server-community-faqs-ebook-download/</guid>
      <description><![CDATA[Our SQL Server Forum Support Team authored, collected and consolidated those common asked questions...]]></description>
      <content:encoded><![CDATA[<p>Our SQL Server Forum Support Team authored, collected and consolidated those common asked questions in SQL Server MSDN and TechNet forums&nbsp;into this ebook so as to provide an offline reading and learning experience for IT professionals and people who are interested in SQL Server. In this ebook, there are totally about 101 items covering database administration, SSAS, SSIS and SSRS which are good&nbsp;references for you to&nbsp;handle common SQL Server problems. Please let us know your feedbacks if you have any suggestions or concerns. In addition, if you have any&nbsp;hot topics which you would like us to add, we also welcome that you submit your requests via comments or directly send us an email.&nbsp;We will continously keep the content updated and make it more applicable to customers real needs.</p>
<p>Download "<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Books/6354.SQL%20Server%20Community%20FAQs%20Manual%20v1.pdf" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Books/6354.SQL-Server-Community-FAQs-Manual-v1.pdf">SQL Server Community FAQs Manual (PDF)".</a></p>
<p>Here is the&nbsp;book contents:</p>
<p>Part I Database Administration<br />1.&nbsp;Why did a T-SQL script fail to run a job when it could successfully run in SQL Server Management Studio ?&nbsp;6<br />2.&nbsp;How can I degrade a SQL Server database from a higher version to a lower one?&nbsp;8<br />3.&nbsp;How can I create a linked server to the Access or Excel data source from the 64-bit version of SQL Server 2005/2008?&nbsp;9<br />4.&nbsp;Why is all of the memory allocated for SQL Server not shown in Windows Task Manager?&nbsp;11<br />5.&nbsp;How do I configure SQL Server to use larger memory space over 2GB on a 32-bit server?&nbsp;13<br />6.&nbsp;How do I rename my SQL Server instance?&nbsp;15<br />7.&nbsp;How do I store data in multiple languages within one database?&nbsp;16<br />8.&nbsp;How do I calculate the space a nullable column takes in SQL Server 2008?&nbsp;17<br />9.&nbsp;Why can't I view the list of databases, tables, views and etc. in the SQL ServerManagement Studio Object Explorer?&nbsp;18<br />10.&nbsp;Why can't I by pass the "Restart computer" rule when installing SQL Server 2008?&nbsp;19<br />11.&nbsp;Can SQL Server Enterprise Edition be installed on client operating systems?&nbsp;20<br />12.&nbsp;How do I troubleshoot SQL Server connectivity issues?&nbsp;21<br />13.&nbsp;Why can&rsquo;t I track data changes even though I already enabled the database audit on my database?&nbsp;22<br />14.&nbsp;How do I use Powershell script to read the information of any database on a server?&nbsp;23<br />15.&nbsp;Why can't I log on to SQL Server using Windows Authentication in SQL Server Management Studio?&nbsp;24<br />16.&nbsp;What permission(s) do I need to execute a stored procedure (sp)?&nbsp;25<br />17.&nbsp;How do I troubleshoot SQL Server 2008 installation issues?&nbsp;27<br />18.&nbsp;How do I configure SQL Server to enable distributed transactions via Linked Server?&nbsp;28<br />19.&nbsp;How do I find the correct "server" or "data source" value for an SQL Server instance in a connection string?&nbsp;29<br />20.&nbsp;How do I configure Windows Firewall to allow remote connections using TCP/IP protocol for SQL Server?&nbsp;30<br />21.&nbsp;Could SQL Server 2008 Express edition and SQL Server 2008 R2 Express edition be installed side by side with SQL Server 2005 Express?&nbsp;32<br />22.&nbsp;How do I apply a service pack for an instance of SQL Server 2005 Express Edition or SQL Server 2008 Express Edition?&nbsp;33<br />23.&nbsp;How do I resolve &lsquo;SQL Server Setup cannot valid the service accounts&rsquo; error message during the setup?&nbsp;34<br />24.&nbsp;Why do I get &lsquo;Rule &ldquo;Existing clustered or clustered-prepared instance&rdquo; failed&rsquo; error while adding new features to an existing instance of SQL Server Failover Cluster?&nbsp;35</p>
<p><br />Part II Analysis Services<br />25.&nbsp;How do I clear the warm cache of a cube?&nbsp;38<br />26.&nbsp;How do I exclude data members or create non-aggregatable values in parent-child dimensions?&nbsp;39<br />27.&nbsp;How do I specify a calculated member as the default member of an attribute?&nbsp;41<br />28.&nbsp;How do I create AVG measure in my cube?&nbsp;42<br />29.&nbsp;How do I implement dynamic security for the users?&nbsp;43<br />30.&nbsp;What is the common usage of Unknown member?&nbsp;44<br />31.&nbsp;How do I achieve Cumulative Sums for a set in MDX?&nbsp;46<br />32.&nbsp;How do I use wildcards in MDX?&nbsp;47<br />33.&nbsp;How do I query multi-dimensional data in a relational database with T-SQL?&nbsp;48<br />34.&nbsp;How do I resolve the error "File system error: A FileStore error from WriteFile occurred. Physical file: ...." when I process a dimension by using the Process Update option?&nbsp;49<br />35.&nbsp;How do I connect to a SSAS cube through Internet?&nbsp;50<br />36.&nbsp;What will happen if I create two roles for a user?&nbsp;51<br />37.&nbsp;How do I connect to SSAS instance without SQL Browser services started?&nbsp;52<br />38.&nbsp;How do I keep on accessing my cube in MOLAP storage mode when it is processed?&nbsp;53<br />39.&nbsp;How do I have the members of a dimension displayed in my custom order?&nbsp;54<br />40.&nbsp;How do I run MDX query in Excel 2007/2010?&nbsp;55<br />41.&nbsp;How do I automatically deploy my Analysis Services 2005/2008 project?&nbsp;58<br />42.&nbsp;How do I process a cube via T-SQL?&nbsp;59<br />43.&nbsp;Can I perform writeback operations in Excel 2007?&nbsp;61<br />44.&nbsp;How do I troubleshoot the slow MDX query performance?&nbsp;62</p>
<p><br />Part III Reporting Services<br />45.&nbsp;How do I hide the toggle image (+) if there is no row when using drill-down?&nbsp;65<br />46.&nbsp;How do I achieve nested aggregation?&nbsp;66<br />47.&nbsp;How do I achieve column break in a matrix?&nbsp;68<br />48.&nbsp;How do I use Parent-Child Hierarchies and formatted value in report with Analysis Services?&nbsp;70<br />49.&nbsp;How do I set interactive sort across multiple groups in SSRS 2005?&nbsp;72<br />50.&nbsp;How do I get distinct values of SharePoint column using SQL Server Reporting Services?&nbsp;74<br />51.&nbsp;How do I resolve the printer problem &ldquo;Unable to load client print control&rdquo;?&nbsp;75<br />52.&nbsp;How do I allow Enter key to act like the &ldquo;view report&rdquo; button?&nbsp;76<br />53.&nbsp;How do I avoid prompting Login dialog while deploying report from Microsoft Business Intelligence Development Studio?&nbsp;78<br />54.&nbsp;How do I resolve the error &ldquo;No report servers were found on the specified machine&rdquo;?&nbsp;80<br />55.&nbsp;How do I get the subtotals of each page and previous pages at the bottom of the report?&nbsp;81<br />56.&nbsp;How do I anonymously access the Report Manager?&nbsp;82<br />57.&nbsp;How do I deploy a Report Server for Internet Access?&nbsp;83<br />58.&nbsp;How do I resolve the Reporting Server Error 1053: The service did not respond to the start or control request in a timely fashion?&nbsp;84<br />59.&nbsp;How do I dynamically load an external image in a report?&nbsp;85<br />60.&nbsp;How do I call the public methods of Reporting Service Web service in XML Datasource to query report server metadata?&nbsp;86<br />61.&nbsp;How do I get group total in Group Footer with PageBreak in SQL Server Reporting Services?&nbsp;87<br />62.&nbsp;How do I create cascading parameters when using cube database in Reporting Services?&nbsp;89<br />63.&nbsp;Why does the &ldquo;Attempted to divide by zero&rdquo; error still happen?&nbsp;90<br />64.&nbsp;How do I solve the issue - The configuration file contains an element that is not valid?&nbsp;92<br />65.&nbsp;How do I pass a multi-value parameter within a URL?&nbsp;94<br />66.&nbsp;How do I keep only one vertical scroll bar in local report?&nbsp;95<br />67.&nbsp;How do I Hide Export Options with Local Report?&nbsp;97<br />68.&nbsp;How do I get the same page number in web page and PDF?&nbsp;98<br />69.&nbsp;How do I implement OR logic or complicated logics for filters in a SSRS report?&nbsp;99<br />70.&nbsp;How do I work Parameters with a local report?&nbsp;101<br />71.&nbsp;How do I pass a multi-value parameter into a report with SQL Server Reporting Services (SSRS) Web Services API?&nbsp;102<br />72.&nbsp;How do I pass a multi-value parameter to a dataset while using LIKE operator in the WHERE clause?&nbsp;104<br />73.&nbsp;How do I preview a Subreport which is in another SSRS project?&nbsp;105<br />74.&nbsp;Walkthrough: How to list models from SQL Server Master Data Services in a SQL Server Reporting Services (SSRS)&nbsp;108<br />75.&nbsp;Walkthrough: Control Dataset Query Dynamically based on SSRS Report Parameters&nbsp;114<br />76.&nbsp;Walkthrough: How to change XML data for embedded XML document in a SQL Server Reporting Services (SSRS) report&nbsp;116<br />77.&nbsp;Walkthrough: How to get distinct values of a column of a SharePoint list using SQL Server Reporting Services&nbsp;121<br />78.&nbsp;Walkthrough: Assign Dataset Dynamically Created in Code to your local report with ReportViewer&nbsp;128<br />79.&nbsp;Walkthrough: Restrict the users to see only their folders via Reporting Services web services&nbsp;131<br />80.&nbsp;Walkthrough: Add a Subreport in local report in ReportViewer&nbsp;136<br />81.&nbsp;Walkthrough: Working ReportViewer with a complex Business Object with a nested generic list type property as data source for local reports&nbsp;140</p>
<p><br />Part IV Integration Services<br />82.&nbsp;How do I set a flat file name for flat file connection manager dynamically?&nbsp;146<br />83.&nbsp;How do I use dynamic T-SQL in Lookup?&nbsp;147<br />84.&nbsp;How do I use lookup transformation to load data incrementally?&nbsp;148<br />85.&nbsp;How do I create a folder for SSIS package in MSDB with T-SQL?&nbsp;150<br />86.&nbsp;How do I resolve the error "Connection is busy with results for another command"?&nbsp;151<br />87.&nbsp;How do I programmatically create a Transfer SQL Server Objects task?&nbsp;152<br />88.&nbsp;How do I execute a stored procedure with a return value and an output parameter in an Execute SQL Task?&nbsp;154<br />89.&nbsp;How do I use the Fuzzy Grouping transformation?&nbsp;156<br />90.&nbsp;How do I use Integration Services to achieve Push-mode processing for Analysis Services?&nbsp;158<br />91.&nbsp;How do read data from Excel 2007 with Integration Services 2005?&nbsp;160<br />92.&nbsp;How do I upgrade my DTS packages to SSIS 2008 packages?&nbsp;161<br />93.&nbsp;How do I troubleshoot SSIS packages failed execution in a SQL Agent job?&nbsp;162<br />94.&nbsp;How do I track the error message when my SSIS package failed execution?&nbsp;164<br />95.&nbsp;How do I troubleshoot a connection error regarding&nbsp; DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER ?&nbsp;166<br />96.&nbsp;How do I troubleshoot SSIS package hanged for running?&nbsp;168<br />97.&nbsp;How do I use SSIS to completely transfer my database including logins, users, and permissions from one server to another server?&nbsp;173<br />98.&nbsp;How do I create and deploy a SSIS custom task?&nbsp;175<br />99.&nbsp;How do I improve package loading performance in BIDS when I open a package which is imported from another place?&nbsp;177<br />100.&nbsp;How do I use parameters in an SSIS ADO NET source?&nbsp;178<br />101.&nbsp;How do I refresh the layout information of a SQL Server Integration Services (SSIS) package that is modified programmatically?&nbsp;179</p>]]></content:encoded>
    </item>
    <item>
      <title>Walkthrough: Integrating your SQL Server Reporting Services report into Windows 7 Sidebar Gadget</title>
      <link>https://docs.microsoft.com/archive/blogs/sqlforum/walkthrough-integrating-your-sql-server-reporting-services-report-into-windows-7-sidebar-gadget</link>
      <pubDate>Thu, 26 May 2011 02:29:00 GMT</pubDate>
      <dc:creator><![CDATA[SQL Server Forum Support Team]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sqlforum/2011/05/26/walkthrough-integrating-your-sql-server-reporting-services-report-into-windows-7-sidebar-gadget/</guid>
      <description><![CDATA[By default, after installing Window7 operation, there are many powerful and handy little tools in...]]></description>
      <content:encoded><![CDATA[<p>By default, after installing Window7 operation, there are many powerful and handy little tools in Sidebar<b> </b>Gadget, you can also download some customized Sidebar Gadget, such as: <a href="https://gallery.live.com/liveItemDetail.aspx?li=7dd3da55-7d3f-4473-8b50-6ea4b84c8172">MSDN forum helper</a>. Currently, we have some stock reports to show the real-time status of stock market, we also want to integrate SQL Reporting Services - stock report into window7&rsquo;s Sidebar Gadget rather than open the IE all the time. </p>
<p>This article will walk you through the processes of integrating SQL Server Reporting Services into Windows 7 Sidebar Gadget.</p>
<h3>Create a stock mark report and deploy it to Report Server</h3>
<ol>
<li>Open SQL Server Business Intelligence Development Studio to create a Report Server Project named StockMark.</li>
<li>Create a <a href="https://msdn.microsoft.com/en-us/library/dd239383.aspx">stock report</a> named StockMarkStatus, you can also refer to the sample report I gave. </li>
<li>Deploy the stock report to your Report Server</li>
<li>Open the report on Report Server to make sure it can be open correctly. <br />Note: Please write down this report&rsquo;s URL, you will make use of this URL in the following steps. Your URL just like this https://ServerName/ReportServer?/Reportpath/ StockMarkStatus</li>
</ol>
<h3>Create Gadget&rsquo;s <a href="https://msdn.microsoft.com/en-us/magazine/cc163370.aspx#S2">XML Definition File</a> and <a href="https://msdn.microsoft.com/en-us/magazine/cc163370.aspx#S3">Main HTML File</a></h3>
<ol>
<li>Design a PNG image named icon, which is used in the Sidebar Gadget&rsquo;s menu</li>
<li>Open the folder C:\Program Files\Windows Sidebar\Gadgets</li>
<li>Create a New folder named StockMarkStatus.gadget</li>
<li>Copy the image to StockMarkStatus.gadget folder</li>
<li>Create a HTML file named StockMarkStatus.html into the same folder</li>
</ol>
<table cellpadding="0" cellspacing="0" border="1">
<tbody>
<tr>
<td width="590" valign="top">
<p>&lt;html&gt;</p>
<p>&lt;head&gt;</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;script language="javascript"&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //----------------- resizes the gadget display surface</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function DoInit(timeoutPeriod) {</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.body.style.width = 410;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.body.style.height =240;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.body.style.margin = 0;</p>
<p>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;document.body.style.background = "gold";</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setTimeout("location.reload(true);", timeoutPeriod);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&lt;/script&gt; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/head&gt;</p>
<p>&nbsp;</p>
<p>&lt;body onload="JavaScript:DoInit(10000)"&gt; </p>
<p>&lt;div&gt;</p>
<p>&lt;iframe id="rpt" src="https://ServerName/ReportServer?/Reportpath/ StockMarkStatus&amp;rs:Command=Render&amp;rc:Toolbar=False" </p>
<p>&nbsp; style="BACKGROUND-COLOR:transparent" name="doc" frameBorder="no" width="100%" height="100%" scrolling="No" /&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/body&gt; </p>
<p>&lt;/html&gt;</p>
<p>&nbsp;</p>
</td>
</tr>
</tbody>
</table>
<p>Note: Please change your report server URL at iframe src attribute. Change the JavaScript DoInit method parameter value based on your refreshment frequency. </p>
<ol start="6">
<li>Create a gadget.xml file using below content:</li>
</ol>
<table cellpadding="0" cellspacing="0" border="1">
<tbody>
<tr>
<td width="590" valign="top">
<p>&lt;?xml version="1.0" encoding="utf-8" ?&gt; </p>
<p>&lt;gadget&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;name&gt;StockMarkStatus&lt;/name&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;namespace&gt;microsoft.windows&lt;/namespace&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;version&gt;1.0.0.0&lt;/version&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;icons&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;icon height="28" width="28" src="icon.png"/&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/icons&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;hosts&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;host name="sidebar"&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;autoscaleDPI&gt;true&lt;/autoscaleDPI&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;base type="HTML" apiVersion="1.0.0" src="StockMarkStatus.html"/&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;permissions&gt;Full&lt;/permissions&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;platform minPlatformVersion="1.0"/&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/host&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/hosts&gt;</p>
<p>&lt;/gadget&gt;</p>
</td>
</tr>
</tbody>
</table>
<h3>Test this tool in Windows 7 Sidebar Gadget</h3>
<ol>
<li>Right-click the windows7 desktop, then select Gadgets, you will see StockMarkStatus menu in Gadget like below: </li>
</ol>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/3513.wt17-1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/3513.wt17_2D00_1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/3513.wt17-1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/3513.wt17_2D00_1.png" border="0" /></a></p>
<ol start="2">
<li>Right-click the Icon of StockMarkStatus, then select Add button, just like other Gadget tools, you will see the stock report showing on the desktop with ten second refreshment frequency.</li>
</ol>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/8371.wt17-2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/8371.wt17_2D00_2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/8371.wt17-2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/8371.wt17_2D00_2.png" border="0" /></a></p>
<p><b>Reference:</b></p>
<p><a href="https://msdn.microsoft.com/en-us/magazine/cc163370.aspx#S2">Build Your Own Windows Vista Sidebar Gadget</a></p>
<p>&nbsp;</p>
<p>[<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Samples/7485.Walkthrough-SSRSReportGadgetIntegration.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Samples/7485.Walkthrough_2D00_SSRSReportGadgetIntegration.zip">Download Sample</a>]</p>]]></content:encoded>
    </item>
    <item>
      <title>Walkthrough: Implement Optional Cascading Parameters with "&lt;Select All&gt;" in Reporting Services</title>
      <link>https://docs.microsoft.com/archive/blogs/sqlforum/walkthrough-implement-optional-cascading-parameters-with-select-all-in-reporting-services</link>
      <pubDate>Thu, 26 May 2011 02:12:00 GMT</pubDate>
      <dc:creator><![CDATA[SQL Server Forum Support Team]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sqlforum/2011/05/26/walkthrough-implement-optional-cascading-parameters-with-select-all-in-reporting-services/</guid>
      <description><![CDATA[By default, if we create cascading Parameters, Reporting Service will force us to select one value...]]></description>
      <content:encoded><![CDATA[<p style="font-family: calibri;">By default, if we create cascading Parameters, Reporting Service will force us to select one value for every parameter, otherwise Report will not run. Sometimes, our users need to select the cascading parameters optionally, they can choose whichever they like or just leave it be &lt;Select All&gt;, if there is only one available value in the list for one parameter depends on the value chosen in preceding parameter, this available value still need to be selected as its default value automatically. </p>
<p style="font-family: calibri;">This article will walk you through the processes of implementing Optional Cascading Parameters in Reporting Services. The sample in this article uses the sample AdventureWorks database. The report displays order quantity and line totals organized by category, subcategory and product. &nbsp;</p>
<h3 style="font-family: calibri;"><span style="color: #33cccc; font-size: large;">To add a new report to an open report server project</span></h3>
<div style="font-family: calibri;"><ol>
<li>In Solution Explorer, right-click <strong>Reports</strong>, point to <strong>Add</strong>, and click <strong>New Item</strong>. </li>
<li>In the <strong>Add New Item</strong> dialog box, under <strong>Templates</strong>, click <strong>Report</strong>.</li>
<li>In <strong>Name</strong>, type OptionalCascadingParameters.rdl, and then click <strong>Add</strong>. </li>
<span style="color: #33cccc;">﻿</span></ol></div>
<h3><span style="color: #33cccc; font-size: large;">To create a reference to a shared data source</span></h3>
<ol>
<li>In the Report Data pane, click <b>New</b>, and then click <b>Data Source</b>. </li>
<li>In <b>Name</b>, type AdventureWorks </li>
<li>Select <b>Use shared data source reference</b>. </li>
<li>From the drop-down list, select AdventureWorks. </li>
<li>Click OK. </li>
<span style="color: #33cccc;">﻿</span></ol>
<h3><span style="color: #33cccc; font-size: large;">To create the main dataset with a Store Procedure</span></h3>
<ol>
<li>In the Report Data pane, right-click the data source AdventureWorks, and click <b>Add Dataset</b>. </li>
<li>In <b>Name</b>, type SalesbyCategory. </li>
<li>In <b>Data source</b>, verify that AdventureWorks is selected. </li>
<li>In <b>Query type</b>, verify that <b>Store Procedure</b> is selected. </li>
<li>In drop-down list of <b>Select or enter stored procedure name:</b>, select <b>SalesbyCategory</b> which is created by following T-SQL: </li>
</ol>
<table cellpadding="0" cellspacing="0" border="1">
<tbody>
<tr>
<td width="590" valign="top">
<p>USE [AdventureWorks]</p>
<p>GO</p>
<p>&nbsp;</p>
<p>SET ANSI_NULLS ON</p>
<p>GO</p>
<p>SET QUOTED_IDENTIFIER ON</p>
<p>GO</p>
<p>&nbsp;</p>
<p>Create PROCEDURE [dbo].[SalesbyCategory]</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @Category varchar(256)='Select All' ,</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @SubCategory varchar(256)='Select All',</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @Product varchar(256) ='Select All'</p>
<p>AS</p>
<p>BEGIN</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET NOCOUNT ON;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SELECT </p>
<p>&nbsp;&nbsp; PC.Name AS Category,</p>
<p>&nbsp;&nbsp; PSC.Name AS Subcategory,</p>
<p>&nbsp;&nbsp; P.Name AS Product,</p>
<p>&nbsp;&nbsp; SOH.[OrderDate],</p>
<p>&nbsp;&nbsp; SOH.SalesOrderNumber,</p>
<p>&nbsp;&nbsp; SD.OrderQty, </p>
<p>&nbsp;&nbsp; SD.LineTotal</p>
<p>&nbsp;&nbsp; FROM [Sales].[SalesPerson] SP </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INNER JOIN [Sales].[SalesOrderHeader] SOH </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON SP.[SalesPersonID]= SOH.[SalesPersonID]</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INNER JOIN Sales.SalesOrderDetail SD</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON SD.SalesOrderID = SOH.SalesOrderID</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INNER JOIN Production.Product P</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON SD.ProductID = P.ProductID</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INNER JOIN Production.ProductSubcategory PSC</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON P.ProductSubcategoryID = PSC.ProductSubcategoryID</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INNER JOIN Production.ProductCategory PC</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON PC.ProductCategoryID = PSC.ProductCategoryID</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHERE ((PC.Name = (@Category) or @Category='Select All' )</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND (PSC.Name = (@Subcategory) or @Subcategory='Select All')</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND (P.Name = (@Product) or @Product='Select All'))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;</p>
<p>END</p>
</td>
</tr>
</tbody>
</table>
<ol start="6">
<li>Click OK. </li>
<li>(Optional) In the Report Data pane, expand the Parameters node, and verify the following report parameters appear: <i>Category</i>, <i>Subcategory</i>, and <i>Product</i>. </li>
<span style="color: #33cccc;">﻿</span></ol>
<h3><span style="color: #33cccc; font-size: large;">To add the values dataset for the report parameter Category</span></h3>
<ol>
<li>In the Report Data pane, right-click AdventureWorks, and then click <b>Add Dataset</b>. </li>
<li>In <b>Name</b>, type CategoryValues. </li>
<li>In <b>Data source</b>, verify AdventureWorks is selected. </li>
<li>In <b>Query type</b>, verify that <b>Store Procedure</b> is selected. </li>
<li>In drop-down list of <b>Select or enter stored procedure name:</b>, select <b>CategoryValues</b> which is created by following T-SQL: </li>
</ol>
<table cellpadding="0" cellspacing="0" border="1">
<tbody>
<tr>
<td width="590" valign="top">
<p>USE [AdventureWorks]</p>
<p>GO</p>
<p>&nbsp;</p>
<p>SET ANSI_NULLS ON</p>
<p>GO</p>
<p>SET QUOTED_IDENTIFIER ON</p>
<p>GO</p>
<p>&nbsp;</p>
<p>Create PROCEDURE [dbo].[CategoryValues]</p>
<p>AS</p>
<p>BEGIN</p>
<p>&nbsp;</p>
<p>Select 'Select All' AS Category</p>
<p>union all</p>
<p>SELECT DISTINCT Name AS Category</p>
<p>FROM Production.ProductCategory</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>END</p>
</td>
</tr>
</tbody>
</table>
<ol start="6">
<li>Click OK. </li>
<span style="color: #33cccc;">﻿</span></ol>
<h3><span style="color: #33cccc; font-size: large;">To set available values and default values for parameter Category</span></h3>
<ol>
<li><span style="color: #33cccc;">In the Report Data pane, in the Parameters folder, right-click </span><i>Category</i>, and then click <b>Parameter Properties</b>. </li>
<li>Click <b>Available Values </b>tab. </li>
<li>Click <b>Get values from a query </b>option. Three fields appear. </li>
<li>In <b>Dataset</b>, from the drop-down list, select CategoryValues. </li>
<li>In <b>Value</b> field, click Category. </li>
<li>In <b>Label</b> field, click Category. </li>
<li>Click <b>Default Values </b>tab. </li>
<li>Click <b>Get values from a query</b> option. </li>
<li>In <b>Dataset</b>, from the drop-down list, select CategoryValues. </li>
<li>In <b>Value</b> field, select Category. </li>
<li>Click OK. </li>
<span style="color: #33cccc;">﻿</span></ol>
<h3><span style="color: #33cccc; font-size: large;">To add the values dataset for the report parameter Subcategory</span></h3>
<ol>
<li>In the Report Data pane, right-click AdventureWorks, and then click <b>Add Dataset</b>. </li>
<li>In <b>Name</b>, type SubCategoryValues. </li>
<li>In <b>Query type</b>, verify that <b>Store Procedure</b> is selected. </li>
<li>In drop-down list of <b>Select or enter stored procedure name:</b>, select <b>SubcategoryValues </b>which is created by following T-SQL: </li>
</ol>
<table cellpadding="0" cellspacing="0" border="1">
<tbody>
<tr>
<td width="590" valign="top">
<p>USE [AdventureWorks]</p>
<p>GO</p>
<p>&nbsp;</p>
<p>SET ANSI_NULLS ON</p>
<p>GO</p>
<p>SET QUOTED_IDENTIFIER ON</p>
<p>GO</p>
<p>&nbsp;</p>
<p>ALTER PROCEDURE [dbo].[SubcategoryValues]</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @Category varchar(256)='Select All'</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>AS</p>
<p>BEGIN</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET NOCOUNT ON;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Declare @Count int</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select @Count=COUNT(DISTINCT PSC.Name) FROM Production.ProductSubcategory AS PSC INNER JOIN</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Production.ProductCategory AS PC ON PC.ProductCategoryID = PSC.ProductCategoryID</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHERE ((PC.Name = @Category) or (@Category='Select All'))</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If @Count&gt;1</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin </p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select 'Select All' as SubCategory</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; union all</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select DISTINCT PSC.Name as SubCategory FROM Production.ProductSubcategory AS PSC INNER JOIN</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Production.ProductCategory AS PC ON PC.ProductCategoryID = PSC.ProductCategoryID</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;WHERE (PC.Name = @Category) </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select DISTINCT PSC.Name as SubCategory FROM Production.ProductSubcategory AS PSC INNER JOIN</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Production.ProductCategory AS PC ON PC.ProductCategoryID = PSC.ProductCategoryID</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHERE (PC.Name = @Category)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;</p>
<p>END</p>
<p>&nbsp;</p>
</td>
</tr>
</tbody>
</table>
<ol start="5">
<li>Click OK. </li>
</ol>
<h3><span style="color: #33cccc; font-size: large;">To set available values and default values for parameter Subcategory</span></h3>
<ol>
<li>In the Report Data pane, in the Parameters folder, right-click <i>Subcategory</i>, and then click <b>Parameter Properties</b>. </li>
<li>Click <b>Available Values </b>tab. </li>
<li>Click <b>Get values from a query </b>option. </li>
<li>In <b>Dataset</b>, from the drop-down list, click SubcategoryValues. </li>
<li>In <b>Value</b> field, click Subcategory. </li>
<li>In <b>Label</b> field, click Subcategory. </li>
<li>Click <b>Default Values</b> tab. </li>
<li>Click <b>Get values from a query</b> option. </li>
<li>In <b>Dataset</b>, from the drop-down list, click SubcategoryValues. </li>
<li>In <b>Value</b> field, click Subcategory. </li>
<li>Click OK. </li>
</ol>
<h3><span style="color: #33cccc; font-size: large;">To add the values dataset for the report parameter Product</span></h3>
<ol>
<li>In the Report Data pane, right-click AdventureWorks, and then click <b>Add Dataset</b>. </li>
<li>In <b>Name</b>, type ProductValues. </li>
<li>In <b>Query type</b>, verify that <b>Store Procedure</b> is selected. </li>
<li>In drop-down list of <b>Select or enter stored procedure name:</b>, select <b>ProductValues &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>which is created by following T-SQL: </li>
</ol>
<table cellpadding="0" cellspacing="0" border="1">
<tbody>
<tr>
<td width="590" valign="top">
<p>USE [AdventureWorks]</p>
<p>GO</p>
<p>&nbsp;</p>
<p>SET ANSI_NULLS ON</p>
<p>GO</p>
<p>SET QUOTED_IDENTIFIER ON</p>
<p>GO</p>
<p>&nbsp;</p>
<p>ALTER PROCEDURE [dbo].[ ProductValues]</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @Category varchar(256)='Select All',</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @SubCategory varchar(256)='Select All'</p>
<p>AS</p>
<p>BEGIN</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET NOCOUNT ON;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Declare @Count int</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select @Count= Count(DISTINCT P.Name) FROM Production.Product AS P INNER JOIN</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Production.ProductSubcategory AS PSC ON P.ProductSubcategoryID = PSC.ProductSubcategoryID INNER JOIN</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Production.ProductCategory AS PC ON PC.ProductCategoryID = PSC.ProductCategoryID</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHERE (PC.Name = @Category or @Category='Select All' ) AND (PSC.Name = @Subcategory or @Subcategory ='Select All')</p>
<p>&nbsp;&nbsp;&nbsp; If @Count&gt;1</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BEGIN</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SELECT 'Select All' AS Product</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNION ALL</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SELECT DISTINCT P.Name AS Product FROM&nbsp; Production.Product AS P INNER JOIN</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Production.ProductSubcategory AS PSC ON P.ProductSubcategoryID = PSC.ProductSubcategoryID INNER JOIN</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Production.ProductCategory AS PC ON PC.ProductCategoryID = PSC.ProductCategoryID</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHERE (PC.Name = @Category) AND (PSC.Name = @Subcategory )</p>
<p>&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;&nbsp;&nbsp; END</p>
<p>&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;&nbsp;&nbsp; ELSE</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BEGIN</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SELECT DISTINCT P.Name AS Product FROM Production.Product AS P INNER JOIN</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Production.ProductSubcategory AS PSC ON P.ProductSubcategoryID = PSC.ProductSubcategoryID INNER JOIN</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Production.ProductCategory AS PC ON PC.ProductCategoryID = PSC.ProductCategoryID</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WHERE (PC.Name = @Category ) AND (PSC.Name = @Subcategory)</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>END</p>
</td>
</tr>
</tbody>
</table>
<ol start="5">
<li>Click OK. </li>
<span style="color: #33cccc;">﻿</span></ol>
<h3><span style="color: #33cccc; font-size: large;">To set available values and default values for parameter Product</span></h3>
<ol>
<li><span style="color: #000000;">In the Report Data pane, in the Parameters folder, right-click Product, and then click </span><b>Parameter Properties</b>. </li>
<li>Click <b>Available Values</b> tab. </li>
<li>Click <b>Get values from a query</b> option. </li>
<li>In <b>Dataset</b>, from the drop-down list, click ProductValues. </li>
<li>In <b>Value</b> field, click Product. </li>
<li>In <b>Label</b> field, click Product. </li>
<li>Click <b>Default Values</b> tab. </li>
<li>Click <b>Get values from a query</b> option. </li>
<li>In <b>Dataset</b>, from the drop-down list, click ProductValues. </li>
<li>In <b>Value</b> field, click Product. </li>
<li>Click OK. </li>
</ol>
<p>Next, add a table so you can see the effect of optional cascading parameter. </p>
<h3><span style="color: #33cccc; font-size: large;">To add a table to display the results</span></h3>
<ol>
<li>In Design view, add a Table with two columns. </li>
<li>In the Report Data pane, from the SalesbyCategory dataset, drag the following fields to the 2 cells in the details row for the table: OrderQty, LineTotal. </li>
<li>Change their expression to =SUM(Fields!OrderQty.Value) and =SUM(Fields! LineTotal.Value) separately. </li>
<li>Drag Category from the SalesbyCategory dataset to the <b>RowGroups</b> pane and drop it above the <b>Details</b> group. </li>
<li>Drag Subcategory from the SalesbyCategory dataset to the <b>Row Groups</b> pane and drop it underneath Category. </li>
<li>Drag Product from the SalesbyCategory dataset to the <b>Row Groups</b> pane and drop it underneath Subcategory. </li>
<li>Right-click the <b>Details </b>in <b>the Row Groups</b> pane, and then select<b> Group Properties.</b> </li>
<li>Click <b>add</b> button, then select Product in the group&rsquo;s drop-down list. </li>
<li>Click OK. </li>
<li>(Optional) Format the following cells: [LineTotal] as Currency. </li>
<span style="color: #33cccc;">﻿</span></ol>
<h3><span style="color: #33cccc; font-size: large;">To test the optional cascading parameters</span></h3>
<ol>
<li>Click Preview, &lt;Select All&gt; in cascading parameters&rsquo; drop-down list is their default value as following: </li>
</ol>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/2654.wt15-1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/2654.wt15_2D00_1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/2654.wt15-1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/2654.wt15_2D00_1.png" border="0" /></a></p>
<ol start="2">
<li>From the Category drop-down list, select Components, the drop-down list for Subcategory parameter shows all the valid values that are based on Category choices, you could select whichever you like or &nbsp;leave it be &lt;Select All&gt;, as following: </li>
<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/4667.wt15-2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/4667.wt15_2D00_2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/4667.wt15-2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/4667.wt15_2D00_2.png" border="0" /></a><br />Click View Report, you will get below report: </ol>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/4670.wt15-3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/4670.wt15_2D00_3.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/4670.wt15-3.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/4670.wt15_2D00_3.png" border="0" /></a></p>
<ol start="3">
<li>Continue to select Wheels in Subcategory drop-down list, leave Product be &lt;Select All&gt; as following: </li>
<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/4760.wt15-4.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/4760.wt15_2D00_4.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/4760.wt15-4.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/4760.wt15_2D00_4.png" border="0" /></a><br />Click View Report, you will get below report: </ol>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/5661.wt15-5.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/5661.wt15_2D00_5.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/5661.wt15-5.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/5661.wt15_2D00_5.png" border="0" /></a></p>
<ol start="4">
<li>If you select Accessories &nbsp;for Category, select Locks for Subcategory, as there is only one value &lt;Cable Lock&gt; for product, so &lt;Cable Lock&gt; will be selected to replace &lt;Select All&gt; automatically, just as below: </li>
<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/6354.wt15-6.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/6354.wt15_2D00_6.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/6354.wt15-6.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/6354.wt15_2D00_6.png" border="0" /></a><br />Click View Report, you will get below report: </ol>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/8726.wt15-7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/8726.wt15_2D00_7.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/8726.wt15-7.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/8726.wt15_2D00_7.png" border="0" /></a></p>
<p><b>Reference:</b></p>
<p><a href="https://msdn.microsoft.com/en-us/library/dd255197.aspx"><span style="color: #0000ff;">Cascading Parameters</span></a></p>
<p>&nbsp;</p>
<p>[<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Samples/2251.OptionalCascadingParameters.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Samples/2251.OptionalCascadingParameters.zip">Download Sample</a>]</p>]]></content:encoded>
    </item>
    <item>
      <title>FAQ: How do I send SOAP message to MDS web services to create EntityMembers with attributes other than Name and Code?</title>
      <link>https://docs.microsoft.com/archive/blogs/sqlforum/faq-how-do-i-send-soap-message-to-mds-web-services-to-create-entitymembers-with-attributes-other-than-name-and-code</link>
      <pubDate>Tue, 03 May 2011 02:53:02 GMT</pubDate>
      <dc:creator><![CDATA[SQL Server Forum Support Team]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sqlforum/2011/05/03/faq-how-do-i-send-soap-message-to-mds-web-services-to-create-entitymembers-with-attributes-other-than-name-and-code/</guid>
      <description><![CDATA[In Microsoft SQL Server Master Data Services (MDS), we can call the MDS web services, and the method...]]></description>
      <content:encoded><![CDATA[<p>In Microsoft SQL Server Master Data Services (MDS), we can call the MDS web services, and the method EntityMembersCreate to create EntityMembers, which have attributes other than Name and Code. The .NET code is provided in the Reference section in this article.</p>
<p>However, you may like to use the SOAP message to create such EntityMembers. Since the Value property of an Attribute is Object type, if we assign a value to the property Value in the SOAP without convert the value to String explicitly, the XML parser can&rsquo;t serialize it to String, and we will get DeserializationFailed error. </p>
<p>In order to convert a value to String in the SOAP message, you can add namespace xmlns:xsi=<a href="https://www.w3.org/2001/XMLSchema-instance">https://www.w3.org/2001/XMLSchema-instance</a> to the SOAP message, and convert the value explicitly:</p>
<div>
<p>&lt;ns0:Value&nbsp; xsi:type="a:string" xmlns:a="https://www.w3.org/2001/XMLSchema"&gt;102 XYZ&lt;/ns0:Value&gt;</p>
</div>
<p>&nbsp;Here is the&nbsp;complete SOAP for your reference:</p>
<div>
<p>&lt;ns0:EntityMembersCreateRequest xmlns:ns1="https://schemas.datacontract.org/2004/07/Microsoft.MasterDataServices.Services.DataContracts" xmlns:ns0="https://schemas.microsoft.com/sqlserver/masterdataservices/2009/09" xmlns:ns2="https://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ser="https://schemas.microsoft.com/2003/10/Serialization/" <b>xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"</b>&gt;</p>
<p>&nbsp; &lt;ns0:Members&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;ns0:EntityId xsi:type="ns0:Identifier"&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Name&gt;Unit1&lt;/ns0:Name&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;/ns0:EntityId&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;ns0:Members&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Member&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Attributes&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Attribute&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Identifier xsi:type="ns0:Identifier"&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;ns0:Name&gt;Address1&lt;/ns0:Name&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ns0:Identifier&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Value&nbsp; <b>xsi:type="a:string" xmlns:a="https://www.w3.org/2001/XMLSchema"</b>&gt;ABC&lt;/ns0:Value&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ns0:Attribute&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Attribute&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Identifier xsi:type="ns0:Identifier"&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Name&gt;Address2&lt;/ns0:Name&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ns0:Identifier&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Value&nbsp; <b>xsi:type="a:string" xmlns:a="https://www.w3.org/2001/XMLSchema"</b>&gt;102 XYZ&lt;/ns0:Value&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ns0:Attribute&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ns0:Attributes&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:MemberId&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Name&gt;Test1&lt;/ns0:Name&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Code&gt;1010&lt;/ns0:Code&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:MemberType&gt;Leaf&lt;/ns0:MemberType&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ns0:MemberId&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ns0:Member&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;/ns0:Members&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;ns0:ModelId xsi:type="ns0:Identifier"&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;ns0:Name&gt;ConnectMDM&lt;/ns0:Name&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;/ns0:ModelId&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;ns0:VersionId xsi:type="ns0:Identifier"&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns0:Name&gt;VERSION_1&lt;/ns0:Name&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;/ns0:VersionId&gt;</p>
<p>&nbsp; &lt;/ns0:Members&gt;</p>
<p>&lt;/ns0:EntityMembersCreateRequest&gt;</p>
</div>
<p>&nbsp;</p>
<p>&nbsp;<b>Reference</b></p>
<p>IService.EntityMembersCreate Method<br /><a href="https://technet.microsoft.com/en-us/library/microsoft.masterdataservices.iservice.entitymemberscreate.aspx">https://technet.microsoft.com/en-us/library/microsoft.masterdataservices.iservice.entitymemberscreate.aspx</a> &nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Walkthrough: Update members in SQL Server Master Data Service using MDS API</title>
      <link>https://docs.microsoft.com/archive/blogs/sqlforum/walkthrough-update-members-in-sql-server-master-data-service-using-mds-api</link>
      <pubDate>Tue, 03 May 2011 02:39:00 GMT</pubDate>
      <dc:creator><![CDATA[SQL Server Forum Support Team]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sqlforum/2011/05/03/walkthrough-update-members-in-sql-server-master-data-service-using-mds-api/</guid>
      <description><![CDATA[Generally, we can use the EntityMembersUpdate method from MDS web...]]></description>
      <content:encoded><![CDATA[<p>
<meta content="text/html; charset=gb2312" />
<meta content="Word.Document" name="ProgId" />
<meta content="Microsoft Word 14" name="Generator" />
<meta content="Microsoft Word 14" name="Originator" />
<link href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Walkthrough-How%20to%20update%20members%20in%20SQL%20Server%20Master%20Data%20Service(MDS)%20using%20MDS%20API_files/filelist.xml" rel="File-List" />
<link target="Walkthrough-How%20to%20update%20members%20in%20SQL%20Server%20Master%20Data%20Service(MDS)%20using%20MDS%20API_files/props002.xm" href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Walkthrough-How%20to%20update%20members%20in%20SQL%20Server%20Master%20Data%20Service(MDS)%20using%20MDS%20API_files/item0001.xml" rel="dataStoreItem" />
<link target="Walkthrough-How%20to%20update%20members%20in%20SQL%20Server%20Master%20Data%20Service(MDS)%20using%20MDS%20API_files/props004.xm" href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Walkthrough-How%20to%20update%20members%20in%20SQL%20Server%20Master%20Data%20Service(MDS)%20using%20MDS%20API_files/item0003.xml" rel="dataStoreItem" />
<link target="Walkthrough-How%20to%20update%20members%20in%20SQL%20Server%20Master%20Data%20Service(MDS)%20using%20MDS%20API_files/props006.xm" href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Walkthrough-How%20to%20update%20members%20in%20SQL%20Server%20Master%20Data%20Service(MDS)%20using%20MDS%20API_files/item0005.xml" rel="dataStoreItem" />
<link href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Walkthrough-How%20to%20update%20members%20in%20SQL%20Server%20Master%20Data%20Service(MDS)%20using%20MDS%20API_files/themedata.thmx" rel="themeData" />
<link href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Walkthrough-How%20to%20update%20members%20in%20SQL%20Server%20Master%20Data%20Service(MDS)%20using%20MDS%20API_files/colorschememapping.xml" rel="colorSchemeMapping" />
</p>

<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">Generally, we can use the <span class="SpellE">EntityMembersUpdate</span> method from MDS web services to update members in MDS. However, you may like to know how to update members, which have an attribute with a specific value.<br />This article walks through the steps about how to get expected members, and then update them. <o:p></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 16.0pt; line-height: 115%; color: #548dd4; mso-themecolor: text2; mso-themetint: 153;">Add a service reference to the MDS web service <o:p></o:p></span></b></p>
<p class="MsoListParagraph"><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">The detailed steps are described in the following article, which is provided by the Master Data Services team.<br /></span><a href="https://blogs.msdn.com/b/mds/archive/2010/02/09/getting-started-with-the-web-services-api-in-sql-server-2008-r2-master-data-services.aspx">Getting Started with the Web Services API in SQL Server 2008 R2 Master Data Services</a><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;"><br style="mso-special-character: line-break;" /><br style="mso-special-character: line-break;" /><o:p></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 16.0pt; color: #548dd4; mso-themecolor: text2; mso-themetint: 153;">Use the following to get expected members, and then update them<br /></span></b><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp; </span><o:p></o:p></span></p>
<div style="mso-element: para-border-div; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 1.0pt 4.0pt 1.0pt 4.0pt;">
<p class="MsoNormal"><span style="font-size: 12.0pt; color: black; mso-themecolor: text1;"><br /></span><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span style="color: #2b91af;">EntityMembersGetRequest</span></span> <span class="SpellE">getRequest</span> = <span style="color: blue;">new</span> <span class="SpellE"><span class="GramE"><span style="color: #2b91af;">EntityMembersGetRequest</span></span></span><span class="GramE">(</span>);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span style="color: #2b91af;">EntityMembersGetResponse</span></span> <span class="SpellE">getResponse</span> = <span style="color: blue;">new</span> <span class="SpellE"><span class="GramE"><span style="color: #2b91af;">EntityMembersGetResponse</span></span></span><span class="GramE">(</span>);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: green;">//Represents a request complex type that defines the <span class="SpellE">EntityMember</span> criteria for the operations result set.</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span style="color: #2b91af;">EntityMembersGetCriteria</span></span> <span class="SpellE">memberGetCriteria</span> = <span style="color: blue;">new</span> <span class="SpellE"><span class="GramE"><span style="color: #2b91af;">EntityMembersGetCriteria</span></span></span><span class="GramE">(</span>);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="GramE"><span style="color: green;">//Sets GUID or the exact name of the model.</span></span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">memberGetCriteria.ModelId</span> = <span style="color: blue;">new</span> <span class="GramE"><span style="color: #2b91af;">Identifier</span>(</span>) { Name = <span style="color: #a31515;">"Product"</span>};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="GramE"><span style="color: green;">//Sets a GUID or the exact name of the entity.</span></span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">memberGetCriteria.EntityId</span> = <span style="color: blue;">new</span> <span class="GramE"><span style="color: #2b91af;">Identifier</span>(</span>) { Name = <span style="color: #a31515;">"Product"</span>};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="GramE"><span style="color: green;">//Sets the GUID or the exact name of the version.</span></span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">memberGetCriteria.VersionId</span> = <span style="color: blue;">new</span> <span class="GramE"><span style="color: #2b91af;">Identifier</span>(</span>) { Name = <span style="color: #a31515;">"VERSION_1"</span> };<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="GramE"><span style="color: green;">//Sets a WHERE clause search criteria to filter records.</span></span><span style="color: green;"> In this sample, we want to get members, which have the attribute '<span class="SpellE">TestAttribute</span>' with value '<span class="SpellE">abc</span>'</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">memberGetCriteria.SearchTerm</span> = <span class="SpellE"><span class="GramE"><span style="color: #2b91af;">String</span>.Format</span></span><span class="GramE">(</span><span style="color: #a31515;">" [<span class="SpellE">TestAttribute</span>] = '{0}' "</span>, <span style="color: #a31515;">"<span class="SpellE">abc</span>"</span>);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">getRequest.MembersGetCriteria</span> = <span class="SpellE">memberGetCriteria</span>;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">getResponse</span></span> = <span class="SpellE">mdsProxy.EntityMembersGet</span>(<span class="SpellE">getRequest</span>);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #2b91af;">Collection</span>&lt;<span style="color: #2b91af;">Member</span>&gt; members = <span style="color: blue;">new</span> <span style="color: #2b91af;">Collection</span>&lt;<span style="color: #2b91af;">Member</span><span class="GramE">&gt;(</span>);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="GramE"><span style="color: blue;">if</span></span> (<span class="SpellE">getResponse.EntityMembers.Members.Count</span> &gt; 0)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE"><span style="color: blue;">foreach</span></span></span> (<span style="color: #2b91af;">Member</span> <span class="SpellE">individualMember</span> <span style="color: blue;">in</span> <span class="SpellE">getResponse.EntityMembers.Members</span>)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: green;">//Update the value of the attribute '<span class="SpellE">TestAttribute</span>', change it from '<span class="SpellE">abc</span>' to '<span class="SpellE">cba</span>'</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">individualMember.Attributes</span> = <span style="color: blue;">new</span> <span style="color: #2b91af;">Collection</span>&lt;<span class="SpellE">MDService.<span style="color: #2b91af;">Attribute</span></span><span class="GramE">&gt;(</span>) { <span style="color: blue;">new</span> <span class="SpellE">MDS.MDService.<span style="color: #2b91af;">Attribute</span></span>() { Identifier = <span style="color: blue;">new</span> <span style="color: #2b91af;">Identifier</span>() { Name = <span style="color: #a31515;">"<span class="SpellE">TestAttribute</span>"</span> }, Value = <span style="color: #a31515;">"<span class="SpellE">cba</span>"</span> } };<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: green;">//Add the member to the member collection.</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">members.Add</span></span><span class="GramE">(</span><span class="SpellE">individualMember</span>);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: green;">// <span class="GramE">Create</span> the request and response objects</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span style="color: #2b91af;">EntityMembersUpdateRequest</span></span> request = <span style="color: blue;">new</span> <span class="SpellE"><span class="GramE"><span style="color: #2b91af;">EntityMembersUpdateRequest</span></span></span><span class="GramE">(</span>);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span style="color: #2b91af;">EntityMembersUpdateResponse</span></span> response = <span style="color: blue;">new</span> <span class="SpellE"><span class="GramE"><span style="color: #2b91af;">EntityMembersUpdateResponse</span></span></span><span class="GramE">(</span>);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span style="color: #2b91af;">EntityMembers</span></span> <span class="SpellE">requestMember</span> = <span style="color: blue;">new</span> <span class="SpellE"><span class="GramE"><span style="color: #2b91af;">EntityMembers</span></span></span><span class="GramE">(</span>);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">requestMember.EntityId</span> = <span style="color: blue;">new</span> <span class="GramE"><span style="color: #2b91af;">Identifier</span>(</span>) { Name = <span style="color: #a31515;">"Product"</span> };<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">requestMember.ModelId</span> = <span style="color: blue;">new</span> <span class="GramE"><span style="color: #2b91af;">Identifier</span>(</span>) { Name = <span style="color: #a31515;">"Product"</span> };<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">requestMember.VersionId</span> = <span style="color: blue;">new</span> <span class="GramE"><span style="color: #2b91af;">Identifier</span>(</span>) { Name = <span style="color: #a31515;">"VERSION_1"</span> };<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="GramE"><span style="color: green;">//Add the modified members to the members property.</span></span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">requestMember.Members</span> = members;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">request.Members</span> = <span class="SpellE">requestMember</span>;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: green;">// Make the service request to update the members.</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 9.5pt; font-family: Consolas;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="GramE">response</span> = <span class="SpellE">mdsProxy.EntityMembersUpdate</span>(request);<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;"><br style="mso-special-character: line-break;" /><br style="mso-special-character: line-break;" /><o:p></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 16.0pt; line-height: 115%; color: #548dd4; mso-themecolor: text2; mso-themetint: 153;">Set the <span class="SpellE">SearchTerm</span> property</span></b><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;"> <o:p></o:p></span></p>
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">The <span class="SpellE">SearchTerm</span> property is a string, which gets or sets a WHERE clause search criteria to filter records. Its format must be in this format:<br style="mso-special-character: line-break;" /><br style="mso-special-character: line-break;" /><o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">[<span class="SpellE">AttributeName</span>] Operation value <span class="SpellE">OperationParemter</span> <br style="mso-special-character: line-break;" /><br style="mso-special-character: line-break;" /><o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span class="SpellE"><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">AttributeName</span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;"> is the name of an attribute<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">Operation can be in one of the following operations:<br />REGEX<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">&gt;<o:p>&nbsp;</o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">&gt;=<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">IN<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">=<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">&lt;&gt;<o:p>&nbsp;</o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">IS NOT NULL<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">IS NULL<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">&lt;<o:p>&nbsp;</o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">&lt;=<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">LIKE<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">MATCH<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">NOT REGEX<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">NOT IN<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">NOT LIKE<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">&middot;<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">NOT MATCH<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">Value is the criteria used for searching.<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpLast"><span class="SpellE"><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;">OperationParemter</span></span><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;"> only be used when you use uncertain operation (e.g. Match).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12.0pt; line-height: 115%; color: black; mso-themecolor: text1;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 16.0pt; line-height: 115%; color: #548dd4; mso-themecolor: text2; mso-themetint: 153;">Reference<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: medium; mso-themecolor: text1;"><a href="https://technet.microsoft.com/en-us/library/microsoft.masterdataservices.iservice.entitymembersupdate.aspx"><span class="SpellE">IService.EntityMembersUpdate</span> Method</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: medium;"><a href="https://technet.microsoft.com/en-us/library/microsoft.masterdataservices.services.servicecontracts.iservice.entitymembersget.aspx"><span class="SpellE">IService.EntityMembersGet</span> Method</a></span></p>
</div>]]></content:encoded>
    </item>
    <item>
      <title>Walkthrough: How to list models from SQL Server Master Data Services in a SQL Server Reporting Services (SSRS) report</title>
      <link>https://docs.microsoft.com/archive/blogs/sqlforum/walkthrough-how-to-list-models-from-sql-server-master-data-services-in-a-sql-server-reporting-services-ssrs-report</link>
      <pubDate>Tue, 03 May 2011 02:26:00 GMT</pubDate>
      <dc:creator><![CDATA[SQL Server Forum Support Team]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sqlforum/2011/05/03/walkthrough-how-to-list-models-from-sql-server-master-data-services-in-a-sql-server-reporting-services-ssrs-report/</guid>
      <description><![CDATA[&nbsp;
SQL Server Master Data Services (MDS) is a new feature in SQL Server 2008 R2. It is the...]]></description>
      <content:encoded><![CDATA[<p><b><span style="font-family: Calibri;"></span></b>&nbsp;</p>
<p><span style="font-family: Calibri;">SQL Server Master Data Services (MDS) is a new feature in SQL Server 2008 R2. It is the source of master data for an organization. To learn more information about it, you can read &ldquo;</span><a href="https://msdn.microsoft.com/en-us/library/ee633763.aspx"><span style="font-family: Calibri; color: #0000ff;">Master Data Services</span></a><span style="font-family: Calibri;">&rdquo;. This article walks through the steps of how to access the models of SQL MDS in a SSRS report. The points are exposing the MDS web services and using XML data source type to access the data from the web services.</span></p>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<p><span style="color: #3366ff; font-size: medium;"><b><span style="font-family: Calibri;">Expose the MDS WCF services to using BasicHttpBinding </span></b></span></p>
<ol>
<li><span style="font-family: Calibri;">In order to consume <st1:stockticker>MDS</st1:stockticker> web services, you need to enable web services for <st1:stockticker>MDS</st1:stockticker> first. For detailed steps, please refer to </span><a href="https://msdn.microsoft.com/en-us/library/ff486972.aspx"><span style="font-family: Calibri; color: #0000ff;">How to: Enable Web Services (Master Data Services)</span></a><span style="font-family: Calibri;">.</span></li>
<li><span style="font-family: Calibri;">Open the web.config configuration file for the MDS web site with text editor. By default, the file is host in C:\Program Files\Microsoft SQL Server\Master Data Services\WebApplication</span></li>
<li><span style="font-family: Calibri;">Add the BasicHttpBinding configurations to the bindings section&nbsp; of &nbsp;the web.config file as follows:<br /><br /></span></li>
</ol>
<div>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bindings&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsHttpBinding&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;binding name="mdsWsHttpBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="2147483647" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647"/&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Non-SSL implementations.--&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;security mode="Message"&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;message clientCredentialType="Windows"/&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/security&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- SSL implementations --&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;security mode="Transport"&gt;--&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;message clientCredentialType="Windows" /&gt;--&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;/security&gt;--&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/binding&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/wsHttpBinding&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;basicHttpBinding&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;binding name="mdsBasicHttpBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="2147483647" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647"/&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Non-SSL implementations.--&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;security mode="Message"&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;message clientCredentialType="Windows"/&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/security&gt;--&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- SSL implementations --&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;security mode="Transport"&gt;--&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;message clientCredentialType="Windows" /&gt;--&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&lt;/security&gt;--&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/binding&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/basicHttpBinding&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/bindings&gt;<br /><br /></span></p>
</div>
<p><span style="font-family: Calibri;">4. Configure the service to use BasicHttpBinding</span></p>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<div>
<p><span style="font-family: Calibri;">&nbsp;&nbsp; &lt;service behaviorConfiguration="mdsWsHttpBehavior" name="Microsoft.MasterDataServices.Services.Service"&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp; &lt;!--&lt;endpoint binding="wsHttpBinding" bindingConfiguration="mdsWsHttpBinding"</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp; bindingNamespace="https://schemas.microsoft.com/sqlserver/masterdataservices/2009/09"</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp; contract="Microsoft.MasterDataServices.Services.ServiceContracts.IService" /&gt; --&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp; &lt;endpoint binding="basicHttpBinding" bindingConfiguration="mdsBasicHttpBinding"</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp; bindingNamespace="https://schemas.microsoft.com/sqlserver/masterdataservices/2009/09"</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp; contract="Microsoft.MasterDataServices.Services.ServiceContracts.IService" /&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp; &lt;/service&gt;</span></p>
</div>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<p><span style="color: #3366ff; font-size: medium;"><b><span style="font-family: Calibri;">Create a Shared Data Source or embedded Data Source that is using XML data source type</span></b></span></p>
<p><span style="color: #00ccff; font-size: small;"><strong><span style="font-family: Cambria;">Create a Shared Data Source</span></strong></span></p>
<ol>
<li><span style="font-family: Calibri;">In the Business Intelligence Development Studio (BIDS), in the <b>Solution Explorer</b>, right-click <b>Shared Data Sources</b>.</span></li>
<li><span style="font-family: Calibri;">Then click <b>Add New Data Source</b>.</span></li>
<li><span style="font-family: Calibri;">In the <b>Shared Data Source Properties</b> dialog, type in a name for the data source, select type <b>XML</b></span></li>
<li><span style="font-family: Calibri;">Set the connecting string to be the URL address of the MDS WCF service. E.g.&nbsp; </span><a href="https://servername:10001/Service/Service.svc"><span style="font-family: Calibri; color: #0000ff;">https://servername:10001/Service/Service.svc</span></a></li>
<li><span style="font-family: Calibri;">Go to <b>Credentials</b> tab, check <b>Use Windows Authentication(Integrated Security)</b></span></li>
</ol>
<p><span style="color: #00ccff; font-size: small;"><strong><span style="font-family: Cambria;">Create an Embedded Data Source</span></strong></span></p>
<ol>
<li><span style="font-family: Calibri;">In the Business Intelligence Development Studio (BIDS), in the <b>Report Data</b>, right-click <b>Data Sources</b>.</span></li>
<li><span style="font-family: Calibri;">Then click <b>Add Data Source</b>.</span></li>
<li><span style="font-family: Calibri;">In the <b>Shared Data Source Properties</b> dialog, type a name for the data source, select type <b>XML</b></span></li>
<li><span style="font-family: Calibri;">Set the connecting string to be the URL address of the MDS WCF service. E.g.&nbsp; </span><a href="https://servername:10001/Service/Service.svc"><span style="font-family: Calibri; color: #0000ff;">https://servername:10001/Service/Service.svc</span></a><span style="font-family: Calibri;"> </span></li>
<li><span style="font-family: Calibri;">Go to <b>Credentials</b> tab, check <b>Use Windows Authentication(Integrated Security)</b></span></li>
</ol>
<p><span style="color: #00ccff; font-size: small;"><span style="font-family: Calibri;">&nbsp;</span><b><span style="font-family: Calibri;">List all models in a SSRS report</span></b></span></p>
<ol>
<li><span style="font-family: Calibri;">In the Business Intelligence Development Studio (BIDS), in the <b>Report Data</b>, right-click <b>Datasets</b>.</span></li>
<li><span style="font-family: Calibri;">Then click <b>Add Dataset&hellip;</b>.</span></li>
<li><span style="font-family: Calibri;">In the <b>Dataset Properties</b> dialog, in the <b>Query</b> tab, type a name for the dataset</span></li>
<li><span style="font-family: Calibri;">Choose the data source created before for this dataset.</span></li>
<li><span style="font-family: Calibri;">In the <b>Query</b> textbox, type the following query:</span></li>
</ol>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<div>
<p><span style="font-family: Calibri;">&lt;Query&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Method Namespace="https://schemas.microsoft.com/sqlserver/masterdataservices/2009/09" Name="MetadataGetRequest"&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Parameters&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Parameter Name="ResultOptions" Type="XML"&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DefaultValue&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Models&gt;Details&lt;/Models&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/DefaultValue&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Parameter&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Parameter Name="SearchCriteria" Type="XML"&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DefaultValue&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/DefaultValue&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;/Parameter&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Parameters&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Method&gt;</span></p>
<p><span style="font-family: Calibri;">&lt;SoapAction&gt;https://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/MetadataGet&lt;/SoapAction&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ElementPath IgnoreNamespaces="True"&gt;MetadataGetResponse{}/Metadata{}/Models{}/Model{}/Identifier{Id, Name, InternalId}&lt;/ElementPath&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&lt;/Query&gt;</span></p>
</div>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<p><span style="color: #00ccff; font-size: small;"><b><span style="font-family: Calibri;">Pass user defined search criteria to the web service call </span></b></span></p>
<ol>
<li><span style="font-family: Calibri;">In the Business Intelligence Development Studio (BIDS), in the <b>Report Data</b>, double-click the dataset for the web service call.</span></li>
<li><span style="font-family: Calibri;">In the <b>Dataset Properties </b>dialog, go to <b>Parameters</b> tab</span></li>
<li><span style="font-family: Calibri;">Click <b>Add</b> to add the first parameter. <br />Note: </span><ol>
<li><span style="font-family: Calibri;">The number of the parameters must be same with the number of the parameters in the web service call.</span></li>
<li><span style="font-family: Calibri;">The sequence of the parameters must be same with the sequence in the web service call.</span></li>
<li>&nbsp;<span style="font-family: Calibri;">The name of each parameter must be same with the parameter in the web service call.</span></li>
</ol></li>
<li><span style="font-family: Calibri;">Set the parameter name to be <b>ResultOptions, </b>and the value to be</span><span style="font-family: Calibri;"><b>:<br /><br /></b></span></li>
</ol>
<div>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Models&gt;Details&lt;/Models&gt;</span></p>
</div>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<p><span style="font-family: Calibri;">5. Click Add again to and another parameter <b>SearchCriteria.</b></span></p>
<p><span style="font-family: Calibri;">6. Set the value of the parameter to be:</span></p>
<div>
<p>="&lt;Models&gt;&lt;Identifier&gt;&lt;Name&gt;" &amp; Parameters!modelName.Value &amp; "&lt;/Name&gt;&lt;/Identifier&gt;&lt;/Models&gt;"</p>
</div>
<p><span style="font-family: Calibri;"><b>modelName</b> is a report parameter.</span></p>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<p><span style="color: #00ccff; font-size: small;"><b><span style="font-family: Calibri;">More Information</span></b></span></p>
<p><span style="font-family: Calibri;">a.</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: Calibri;">The <b>ResultOptions</b> parameter is a <b>MetadataResultOptions</b> object.</span></p>
<p><span style="font-family: Calibri;">b.</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: Calibri;">The <b>SearchCriteria</b> parameter is a <b>MetadataSearchCriteria</b> object.</span></p>
<p><span style="font-family: Calibri;">c.</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: Calibri;">In order to construct the SOAP message, you can follow these steps:</span> </p>
<p style="padding-left: 30px;"><span style="font-family: Calibri;">1.</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: Calibri;">Create a .NET application to invoke the MDS WCF services.</span></p>
<p style="padding-left: 30px;"><span style="font-family: Calibri;">2.</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: Calibri;">Call the MetaDataGet method in the application.</span></p>
<p style="padding-left: 30px;"><span style="font-family: Calibri;">3.</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: Calibri;">Debug the application.</span></p>
<p style="padding-left: 30px;"><span style="font-family: Calibri;">4.</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: Calibri;">Use a tool named Fiddler to get the constructed SOAP message.</span></p>
<p><span style="font-family: Calibri;">&nbsp;</span><span style="font-family: Calibri;">d.</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: Calibri;">Another samples for <b>ResultOptions</b>:<br /><br /></span>
<p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Parameter Name="ResultOptions" Type="XML"&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DefaultValue&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;AttributeGroups&gt;Details&lt;/AttributeGroups&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Attributes&gt;Details&lt;/Attributes&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DerivedHierarchies&gt;Details&lt;/DerivedHierarchies&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DerivedHierarchyLevels&gt;Details&lt;/DerivedHierarchyLevels&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entities&gt;Details&lt;/Entities&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ExplicitHierarchies&gt;Details&lt;/ExplicitHierarchies&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;MemberTypes&gt;Details&lt;/MemberTypes&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Models&gt;Details&lt;/Models&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;VersionFlags&gt;Details&lt;/VersionFlags&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Versions&gt;Details&lt;/Versions&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/DefaultValue&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Parameter&gt;</span></p>
</p>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<p><b><span style="font-family: Calibri;">e.</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b><span style="font-family: Calibri;">Another sample for <b>SearchCriteria: </b></span></p>
<p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Parameter Name="SearchCriteria" Type="XML"&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DefaultValue&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Models&gt;&lt;Identifier&gt;&lt;Name&gt;modelName&lt;/Name&gt;&lt;/Identifier&gt;&lt;/Models&gt;&gt;&lt;Entities&gt;&lt;Identifier&gt;&lt;Name&gt;entityName&lt;/Name&gt;&lt;/Identifier&gt;&lt;/Entities&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/DefaultValue&gt;</span></p>
<p><span style="font-family: Calibri;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Parameter&gt;</span></p>
</p>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<p><b><span style="font-family: Calibri;">Reference</span></b></p>
<p><span style="font-family: Calibri;">XML Connection Type (SSRS)</span></p>
<p><a href="https://msdn.microsoft.com/en-us/library/dd220468.aspx"><span style="font-family: Calibri; color: #0000ff;">https://msdn.microsoft.com/en-us/library/dd220468.aspx</span></a><span style="font-family: Calibri;"> </span></p>
<p><span style="font-family: Calibri;">Element Path Syntax for Specifying XML Report Data (SSRS)</span></p>
<p><a href="https://msdn.microsoft.com/en-us/library/ms365158.aspx"><span style="font-family: Calibri; color: #0000ff;">https://msdn.microsoft.com/en-us/library/ms365158.aspx</span></a><span style="font-family: Calibri;"> </span></p>
<p><span style="font-family: Calibri;">ServiceClient.MetadataGet Method</span></p>
<p><a href="https://msdn.microsoft.com/en-us/library/microsoft.masterdataservices.serviceclient.metadataget.aspx"><span style="font-family: Calibri; color: #0000ff;">https://msdn.microsoft.com/en-us/library/microsoft.masterdataservices.serviceclient.metadataget.aspx</span></a><span style="font-family: Calibri;"> </span></p>
<p><span style="font-family: Calibri;">MetadataResultOptions Class</span></p>
<p><a href="https://msdn.microsoft.com/en-us/library/microsoft.masterdataservices.metadataresultoptions.aspx"><span style="font-family: Calibri; color: #0000ff;">https://msdn.microsoft.com/en-us/library/microsoft.masterdataservices.metadataresultoptions.aspx</span></a></p>
<p><span style="font-family: Calibri;">MetadataSearchCriteria Class</span></p>
<p><a href="https://msdn.microsoft.com/en-us/library/microsoft.masterdataservices.services.datacontracts.metadatasearchcriteria.aspx"><span style="font-family: Calibri; color: #0000ff;">https://msdn.microsoft.com/en-us/library/microsoft.masterdataservices.services.datacontracts.metadatasearchcriteria.aspx</span></a><span style="font-family: Calibri;"> </span></p>
<p><span style="font-family: Calibri;">&nbsp;</span></p>
<p><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Samples/4544.Walkthrough-ListModels.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Samples/4544.Walkthrough_2D00_ListModels.zip">[Download sample]</a></span></p>
</p>]]></content:encoded>
    </item>
    <item>
      <title>Walkthrough: Control Dataset Query Dynamically based on SSRS Report Parameters</title>
      <link>https://docs.microsoft.com/archive/blogs/sqlforum/walkthrough-control-dataset-query-dynamically-based-on-ssrs-report-parameters</link>
      <pubDate>Tue, 03 May 2011 01:41:00 GMT</pubDate>
      <dc:creator><![CDATA[SQL Server Forum Support Team]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sqlforum/2011/05/03/walkthrough-control-dataset-query-dynamically-based-on-ssrs-report-parameters/</guid>
      <description><![CDATA[Generally, using a parameterized query can filter data for a report...]]></description>
      <content:encoded><![CDATA[<p>
<meta content="text/html; charset=gb2312" />
<meta content="Word.Document" name="ProgId" />
<meta content="Microsoft Word 14" name="Generator" />
<meta content="Microsoft Word 14" name="Originator" />
<link href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Walkthrough_files/filelist.xml" rel="File-List" />
<link href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Walkthrough_files/editdata.mso" rel="Edit-Time-Data" />
</p>

<p>
<link href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Walkthrough_files/themedata.thmx" rel="themeData" />
<link href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/Walkthrough_files/colorschememapping.xml" rel="colorSchemeMapping" />
</p>

<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 12.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Generally, using a parameterized query can filter data for a report dataset at the source. When include query parameters in a query, Reporting Services automatically creates report parameters that are connected to the query parameters. This enables users to select the data based on a particular criterion, such as values in a data field need to be greater than a specific value. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">However, sometimes the criterion of the filter also depends on parameters dynamically. For example, users can choose the comparison operator like &gt; (greater than) or &lt; (less than) as report parameters to build the filter. This article will walk you through the processes of using a dynamic query based on parameters in a report.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">The sample in this article uses the sample AdventureWorksDW2008 database. The report displays the Product list containing Product Name, Standard Cost, Dealer Price and List Price columns.<o:p></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 16.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: #548dd4; mso-themecolor: text2; mso-themetint: 153;">Add Data Source and Dataset<o:p></o:p></span></b></p>
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">1.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Create a new <i style="mso-bidi-font-style: normal;">Report Server</i> project and then add a blank report.<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">2.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Add a new Data Source <b style="mso-bidi-font-weight: normal;">DataSource1</b> to connect the AdventureWorksDW2008 database with the connection string like<br /><i style="mso-bidi-font-style: normal;">Data Source=.; Initial Catalog=AdventureWorksDW2008</i><o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">3.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Add a new Dataset <b style="mso-bidi-font-weight: normal;">Dataset1</b>. Specify the <i style="mso-bidi-font-style: normal;">Data source</i> to <b style="mso-bidi-font-weight: normal;">DataSource1</b> and type in the following query<br style="mso-special-character: line-break;" /><br style="mso-special-character: line-break;" /><o:p></o:p></span></p>
<table cellpadding="0" cellspacing="0" border="1" class="MsoTableGrid" style="margin-left: 36.0pt; border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt;">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;">
<td width="571" style="width: 428.4pt; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpLast"><span style="font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-no-proof: yes;">SELECT EnglishProductName, ListPrice, StandardCost, DealerPrice <br />FROM DimProduct</span><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size: 12.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 16.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: #548dd4; mso-themecolor: text2; mso-themetint: 153;">Add a Table<o:p></o:p></span></b></p>
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">1.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Add a table to the report body.<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">2.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Add each data field in <b style="mso-bidi-font-weight: normal;">Dataset1</b> to the detail row of the table. It looks like<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpLast"><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1; mso-no-proof: yes;"><v:shapetype id="_x0000_t75"><v:stroke></v:stroke><v:formulas><v:f></v:f><v:f></v:f><v:f></v:f><v:f></v:f><v:f></v:f><v:f></v:f><v:f></v:f><v:f></v:f><v:f></v:f><v:f></v:f><v:f></v:f><v:f></v:f></v:formulas><v:path></v:path><o:lock v:ext="edit" aspectratio="t"></o:lock></v:shapetype><v:shape o:spid="_x0000_i1026" id="Picture_x0020_1" style="width: 339.75pt; height: 45.75pt; visibility: visible; mso-wrap-style: square;"><v:imagedata o:title="walkthrough"></v:imagedata></v:shape></span><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><o:p></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 16.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: #548dd4; mso-themecolor: text2; mso-themetint: 153;">Add Parameters<o:p></o:p></span></b></p>
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">1.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Add a parameter <span class="SpellE"><b style="mso-bidi-font-weight: normal;">FieldName</b></span> with the <i style="mso-bidi-font-style: normal;">Available Values</i> below<o:p></o:p></span></p>
<table cellpadding="0" cellspacing="0" border="1" class="MsoTableGrid" style="margin-left: 36.0pt; border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt;">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; height: 18.85pt;">
<td width="127" style="width: 95.4pt; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; height: 18.85pt;">
<p class="MsoListParagraphCxSpMiddle" align="center"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Label<o:p></o:p></span></b></p>
</td>
<td width="132" style="width: 99.0pt; border: solid windowtext 1.0pt; border-left: none; mso-border-left-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; height: 18.85pt;">
<p class="MsoListParagraphCxSpLast" align="center"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Value<o:p></o:p></span></b></p>
</td>
</tr>
<tr style="mso-yfti-irow: 1;">
<td width="127" style="width: 95.4pt; border: solid windowtext 1.0pt; border-top: none; mso-border-top-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpFirst"><span class="SpellE"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">StandardCost</span></span><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p></o:p></span></p>
</td>
<td width="132" style="width: 99.0pt; border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpLast"><span class="SpellE"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">StandardCost</span></span><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p></o:p></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 2;">
<td width="127" style="width: 95.4pt; border: solid windowtext 1.0pt; border-top: none; mso-border-top-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpFirst"><span class="SpellE"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">DealerPrice</span></span><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p></o:p></span></p>
</td>
<td width="132" style="width: 99.0pt; border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpLast"><span class="SpellE"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">DealerPrice</span></span><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p></o:p></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 3; mso-yfti-lastrow: yes; height: 8.5pt;">
<td width="127" style="width: 95.4pt; border: solid windowtext 1.0pt; border-top: none; mso-border-top-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; height: 8.5pt;">
<p class="MsoListParagraphCxSpFirst"><span class="SpellE"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">ListPrice</span></span><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p></o:p></span></p>
</td>
<td width="132" style="width: 99.0pt; border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; height: 8.5pt;">
<p class="MsoListParagraphCxSpLast"><span class="SpellE"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">ListPrice</span></span><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">2.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Add a parameter <b style="mso-bidi-font-weight: normal;">Operator</b> with the <i style="mso-bidi-font-style: normal;">Available Values</i> below<o:p></o:p></span></p>
<table cellpadding="0" cellspacing="0" border="1" class="MsoTableGrid" style="margin-left: 36.9pt; border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt;">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;">
<td width="126" style="width: 94.5pt; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpMiddle" align="center"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Label<o:p></o:p></span></b></p>
</td>
<td width="132" style="width: 99.0pt; border: solid windowtext 1.0pt; border-left: none; mso-border-left-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpLast" align="center"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Value<o:p></o:p></span></b></p>
</td>
</tr>
<tr style="mso-yfti-irow: 1;">
<td width="126" style="width: 94.5pt; border: solid windowtext 1.0pt; border-top: none; mso-border-top-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">&gt;<o:p>&nbsp;</o:p></span></p>
</td>
<td width="132" style="width: 99.0pt; border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpLast"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">&gt;<o:p>&nbsp;</o:p></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 2;">
<td width="126" style="width: 94.5pt; border: solid windowtext 1.0pt; border-top: none; mso-border-top-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">&gt;=<o:p></o:p></span></p>
</td>
<td width="132" style="width: 99.0pt; border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpLast"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">&gt;=<o:p></o:p></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 3;">
<td width="126" style="width: 94.5pt; border: solid windowtext 1.0pt; border-top: none; mso-border-top-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">=</span><span style="font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: #a31515; mso-no-proof: yes;">"="</span><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p></o:p></span></p>
</td>
<td width="132" style="width: 99.0pt; border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpLast"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">=</span><span style="font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: #a31515; mso-no-proof: yes;">"="</span><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p></o:p></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 4;">
<td width="126" style="width: 94.5pt; border: solid windowtext 1.0pt; border-top: none; mso-border-top-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">&lt;=<o:p></o:p></span></p>
</td>
<td width="132" style="width: 99.0pt; border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpLast"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">&lt;=<o:p></o:p></span></p>
</td>
</tr>
<tr style="mso-yfti-irow: 5; mso-yfti-lastrow: yes;">
<td width="126" style="width: 94.5pt; border: solid windowtext 1.0pt; border-top: none; mso-border-top-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">&lt;<o:p>&nbsp;</o:p></span></p>
</td>
<td width="132" style="width: 99.0pt; border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; mso-border-top-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt;">
<p class="MsoListParagraphCxSpLast"><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">&lt;<o:p>&nbsp;</o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Please be aware that we need to specify an expression for the <i style="mso-bidi-font-style: normal;">equal to</i> item rather than only use the equal sign.<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoListParagraphCxSpLast"><span style="font-size: 12.0pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">3.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Add a parameter <b style="mso-bidi-font-weight: normal;">Value</b> and set its <i style="mso-bidi-font-style: normal;">Data type</i> to <b style="mso-bidi-font-weight: normal;">Float</b>.<o:p></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 16.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: #548dd4; mso-themecolor: text2; mso-themetint: 153;">Modify the Dataset Query<o:p></o:p></span></b></p>
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">1.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Right click <b style="mso-bidi-font-weight: normal;">DataSet1</b> in the <i style="mso-bidi-font-style: normal;">Report Data</i> pane and select <b style="mso-bidi-font-weight: normal;">Dataset Properties.</b><o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">2.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">In the <i style="mso-bidi-font-style: normal;">Dataset Properties</i> window, click the <span class="SpellE"><span class="GramE"><b style="mso-bidi-font-weight: normal;"><i style="mso-bidi-font-style: normal;">fx</i></b></span></span> button beside the <i style="mso-bidi-font-style: normal;">Query</i> text area.<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpLast"><span style="font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">3.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Replace the query text to the expression below<o:p></o:p></span></p>
<table cellpadding="0" cellspacing="0" border="1" class="MsoTableGrid" style="margin-left: 36.9pt; border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt;">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes; height: 38.65pt;">
<td width="576" valign="top" style="width: 432.0pt; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; height: 38.65pt;">
<p class="MsoNormal"><span style="font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-no-proof: yes;">=<span style="color: #a31515;">"SELECT EnglishProductName, ListPrice, StandardCost, DealerPrice FROM DimProduct WHERE "</span> &amp; Parameters!FieldName.Value &amp; Parameters!Operation.Value &amp; CStr(Parameters!Value.Value)</span><span style="font-size: 12.0pt; line-height: 150%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size: 12.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoListParagraphCxSpFirst"><span style="font-size: 12.0pt; line-height: 115%; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><span style="mso-list: Ignore;">4.<span style="font: 7.0pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;">Preview the report. Then, the Field Name, Operator and Value can be specified as parameters to filter the query data dynamically.<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpLast"><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1; mso-no-proof: yes;"><v:shape o:spid="_x0000_i1025" id="Picture_x0020_2" style="width: 349.5pt; height: 333pt; visibility: visible; mso-wrap-style: square;"><v:imagedata o:title="walkthrough2"></v:imagedata></v:shape></span><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; color: black; mso-themecolor: text1;"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><o:p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/8877.ssrscontrol.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/8877.ssrscontrol.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/8877.ssrscontrol.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Images/8877.ssrscontrol.png" border="0" /></a></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">By using expression, the dataset query can be built dynamically based on various requirements.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Samples/8787.wtssrsdynamicquery.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-33-Samples/8787.wtssrsdynamicquery.zip">[Download sample]</a></p>
</div>]]></content:encoded>
    </item>
    <item>
      <title>Walkthrough: How to change XML data for embedded XML document in a SQL Server Reporting Services (SSRS) report</title>
      <link>https://docs.microsoft.com/archive/blogs/sqlforum/walkthrough-how-to-change-xml-data-for-embedded-xml-document-in-a-sql-server-reporting-services-ssrs-report</link>
      <pubDate>Wed, 27 Apr 2011 20:52:24 GMT</pubDate>
      <dc:creator><![CDATA[SQL Server Forum Support Team]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sqlforum/2011/04/27/walkthrough-how-to-change-xml-data-for-embedded-xml-document-in-a-sql-server-reporting-services-ssrs-report/</guid>
      <description><![CDATA[In Microsoft SQL Server Reporting Services (SSRS), you can use XML data source type to connect to...]]></description>
      <content:encoded><![CDATA[<p class="MsoNormal"><span style="line-height: 115%; font-size: 12pt;"><span style="font-family: Calibri;">In Microsoft SQL Server Reporting Services (SSRS), you can use XML data source type to connect to and retrieve data from XML documents, Web services, or embedded XML snippets in queries. <span style="mso-spacerun: yes;">&nbsp;</span>For embedded XML snippets, people often ask how to change the XML attributes or elements values dynamically under a specified XML schema. This article will show you the steps of the resolution. <o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="line-height: 115%; font-size: 12pt;"><span style="font-family: Calibri;">Note: This walkthrough is only available in SSRS 2008 or 2008 R2. In SSRS 2005, you may encounter the error :<o:p></o:p></span></span></p>
<div style="padding-bottom: 1pt; padding-left: 4pt; padding-right: 4pt; padding-top: 1pt; mso-border-alt: solid windowtext .5pt; mso-element: para-border-div; border: windowtext 1pt solid;">
<p class="MsoNormal"><span style="font-size: small;"><span style="font-family: 'Segoe UI','sans-serif'; color: #333333;">An error occurred while setting the Command Text property of the data extension command.&nbsp; <br />The XmlDP query is invalid. Syntax error at line &lt;line number&gt;, character &lt;number&gt; of the ElementPath</span><span style="line-height: 115%; font-size: 12pt;"><o:p></o:p></span></span></p>
</div>
<p class="MsoNormal"><span style="line-height: 115%; font-size: 12pt;"><span style="font-family: Calibri;">However you can ignore the error, and continue to design and preview the report.<o:p></o:p></span></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Create a Shared Data Source or embedded Data Source that is using XML data source type. <o:p></o:p></span></span></b></p>
<p class="MsoNormal"><span><strong><span style="line-height: 115%; font-size: 13pt;"><span style="font-family: Cambria; color: #4f81bd;">Shared Data Source:</span></span><span style="font-family: Calibri;"> <o:p></o:p></span></strong></span></p>
<p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the Business Intelligence Development Studio (BIDS), in the <b style="mso-bidi-font-weight: normal;">Solution Explorer</b>, right-click <b style="mso-bidi-font-weight: normal;">Shared Data Sources</b>.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">2.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Then click <b style="mso-bidi-font-weight: normal;">Add New Data Source</b>.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpLast"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">3.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Shared Data Source Properties</b> dialog, type a name for the data source, select type <b style="mso-bidi-font-weight: normal;">XML</b>, and leave the connection string blank.<o:p></o:p></span></span></p>
<p class="MsoNormal"><span><strong><span style="line-height: 115%; font-size: 13pt;"><span style="font-family: Cambria; color: #4f81bd;">Embedded Data Source:</span></span><span style="font-family: Calibri;"> <o:p></o:p></span></strong></span></p>
<p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the Business Intelligence Development Studio (BIDS), in the <b style="mso-bidi-font-weight: normal;">Report Data</b>, right-click <b style="mso-bidi-font-weight: normal;">Data Sources</b>.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">2.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Then click <b style="mso-bidi-font-weight: normal;">Add Data Source</b>.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">3.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Shared Data Source Properties</b> dialog, type a name for the data source, select type <b style="mso-bidi-font-weight: normal;">XML</b>, and leave the connection string blank.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpLast"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">4.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Go to <b style="mso-bidi-font-weight: normal;">Credentials</b> tab, check <b style="mso-bidi-font-weight: normal;">Use Windows Authentication(Integrated Security)</b><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;<img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/4237.wtssrs15.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/4237.wtssrs15.png" border="0" /></span></o:p></span></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1; mso-no-proof: yes;"><v:shapetype coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f" id="_x0000_t75"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></v:path><o:lock v:ext="edit" aspectratio="t"></o:lock></v:shapetype></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="line-height: 115%; font-size: 12pt;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Create a report parameter in the report. <o:p></o:p></span></span></b></p>
<p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the Business Intelligence Development Studio (BIDS), in the <b style="mso-bidi-font-weight: normal;">Report Data</b>, right-click <b style="mso-bidi-font-weight: normal;">Parameters</b>.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">2.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Then click <b style="mso-bidi-font-weight: normal;">Add Parameter&hellip;</b>.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">3.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Report Parameter Properties</b> dialog, type a name and a prompt for the parameter(e.g. XMLData)</span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><o:p><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/5861.wtssrs14.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/5861.wtssrs14.png" border="0" /></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1; mso-no-proof: yes;"></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">4.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Go to <b style="mso-bidi-font-weight: normal;">Default Values</b><o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">5.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Check <b style="mso-bidi-font-weight: normal;">Specify Values</b>, and then click <b style="mso-bidi-font-weight: normal;">Add</b> to add a value. The value is the XML document.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpLast"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1; mso-no-proof: yes;"></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/6443.wtssrs13.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/6443.wtssrs13.png" border="0" /><br style="mso-special-character: line-break;" /><br style="mso-special-character: line-break;" /><o:p></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Change a dataset in the report. <o:p></o:p></span></span></b></p>
<p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the Business Intelligence Development Studio (BIDS), in the <b style="mso-bidi-font-weight: normal;">Report Data</b>, right-click <b style="mso-bidi-font-weight: normal;">Datasets</b>.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">2.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Then click <b style="mso-bidi-font-weight: normal;">Add Dataset&hellip;</b>.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">3.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Dataset Properties</b> dialog, in the <b style="mso-bidi-font-weight: normal;">Query</b> tab, type a name for the dataset<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">4.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Choose the data source created before for this dataset.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">5.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Query</b> textbox, type in the following query:<br />="&lt;Query&gt;&lt;XmlData&gt;" &amp;Parameters!XMLData.Value &amp;"&lt;/XmlData&gt;&lt;/Query&gt;"</span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><o:p><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/6332.wtssrs12.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/6332.wtssrs12.png" border="0" /></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1; mso-no-proof: yes;"></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">6.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Go to <b style="mso-bidi-font-weight: normal;">Fields</b> tab<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">7.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Add <b style="mso-bidi-font-weight: normal;">Query Field</b> for this dataset. Please note, you need to know the element path before using it in the step. You can get all the fields first using full embedded query directly. <o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpLast"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1; mso-no-proof: yes;"></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/7418.wtssrs11.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/7418.wtssrs11.png" border="0" /></span></span></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Now, you can change the XML data from the parameter to change the XML data for the report.</span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Reference<o:p></o:p></span></span></b></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; color: black; font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: text1; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;">XML Connection Type (SSRS)<br /></span><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"><a href="https://msdn.microsoft.com/en-us/library/dd220468.aspx"><span style="line-height: 115%; font-size: 12pt;"><span style="color: #0000ff;">https://msdn.microsoft.com/en-us/library/dd220468.aspx</span></span></a></span></p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Samples/6765.Walkthrough-DynamicXML.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Samples/6765.Walkthrough_2D00_DynamicXML.zip">[download sample]</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Walkthrough: How to get distinct values of a column of a SharePoint list using SQL Server Reporting Services</title>
      <link>https://docs.microsoft.com/archive/blogs/sqlforum/walkthrough-how-to-get-distinct-values-of-a-column-of-a-sharepoint-list-using-sql-server-reporting-services</link>
      <pubDate>Wed, 27 Apr 2011 20:34:15 GMT</pubDate>
      <dc:creator><![CDATA[SQL Server Forum Support Team]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sqlforum/2011/04/27/walkthrough-how-to-get-distinct-values-of-a-column-of-a-sharepoint-list-using-sql-server-reporting-services/</guid>
      <description><![CDATA[You can connect to a Windows SharePoint Services Lists Web Services, and use GetListItems method...]]></description>
      <content:encoded><![CDATA[<p class="MsoNormal"><span style="line-height: 115%; font-size: 12pt;"><span style="font-family: Calibri;">You can connect to a Windows SharePoint Services Lists Web Services, and use GetListItems method retrieve data from a SharePoint list by using the XML data source type in SSRS.However, the GetListItems returns records for a column of a SharePoint list may include duplicate records. <o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="line-height: 115%; font-size: 12pt;"><span style="font-family: Calibri;">Unfortunately there is no direct way to remove the duplicate records using the Windows SharePoint Services Lists Web Services.This article will show you how to retrieve a column of a Sharepoint list and how to use Custom Code in SSRS to remove the duplicate records. <o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="line-height: 115%; font-size: 12pt;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Create a Report Server Project in Business Intelligence Development Studio <o:p></o:p></span></span></b></p>
<p class="MsoListParagraph"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Open Business Intelligence Development Studio (BIDS) and create a new&nbsp;Report Server Project.</span></span></p>
<p class="MsoListParagraph"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/0245.wtssrs1.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/0245.wtssrs1.jpg" border="0" /><br /></span>
<p><span style="mso-no-proof: yes;"><v:shapetype coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f" id="_x0000_t75"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></v:path><o:lock v:ext="edit" aspectratio="t"></o:lock></v:shapetype></span><o:p></o:p></p>
</span>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Add a report to the project</span></span></b><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><br /><span style="mso-no-proof: yes;"></span></span></p>
<p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Right click&nbsp;the <b style="mso-bidi-font-weight: normal;">Report</b> folder,&nbsp;select <strong>Add</strong>, click <strong>New Item.... <o:p></o:p></strong></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">2.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Select&nbsp;<b style="mso-bidi-font-weight: normal;">Report </b>template, input a report name "Remove Duplicate Records.rdl"<b style="mso-bidi-font-weight: normal;">&hellip;</b>. <o:p></o:p></span></span></p>
<p class="MsoNormal"><br /><span style="mso-no-proof: yes;"></span><o:p></o:p></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Create a XML data source<o:p></o:p></span></span></b></p>
<p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">From the <b style="mso-bidi-font-weight: normal;">View</b> menu, select <b style="mso-bidi-font-weight: normal;">Report Data</b>. <o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">2.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Report Data</b> panel, right-click <b style="mso-bidi-font-weight: normal;">Data Sources</b>, and then click <b style="mso-bidi-font-weight: normal;">Add Data Sources&hellip;</b>. <o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">3.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the Data Source Properties dialog, configure the connection<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">a.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Type a name for the data source in the <b style="mso-bidi-font-weight: normal;">Name</b> textbox<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">b.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Check <b style="mso-bidi-font-weight: normal;">Embedded connection</b><o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">c.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Select type<b style="mso-bidi-font-weight: normal;"> XML</b><o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">d.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Type the connection string in the <b style="mso-bidi-font-weight: normal;">Connection string</b> textbox<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">The connection string is the URL of the Windows SharePoint Services Lists Web Services. For example:<br /></span></span><a href="https://sharepointasia/sites/IRSIS/_vti_bin/lists.asmx"><span style="line-height: 115%; font-size: 12pt;"><span style="font-family: Calibri; color: #0000ff;">https://sharepointasia/sites/IRSIS/_vti_bin/lists.asmx</span></span></a><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p></o:p></span></p>
<p class="MsoListParagraphCxSpLast"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;<img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/0724.wtssrs4.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/0724.wtssrs4.jpg" border="0" /></span></o:p></span></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1; mso-no-proof: yes;"></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p></o:p></span></p>
<p class="MsoListParagraph"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">4.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Go to the <b style="mso-bidi-font-weight: normal;">Credentials</b> tab, check the item </span><b style="mso-bidi-font-weight: normal;"><span style="font-family: Calibri;">Use Windows Authentication(integrated security)</span></b></span></p>
<p class="MsoListParagraph"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: Calibri;"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/4540.wtssrs5.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/4540.wtssrs5.jpg" border="0" /><br /></span></b></span>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Create a Dataset based on the XML data source type<o:p></o:p></span></span></b></p>
<p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Report Data</b> panel, right-click <b style="mso-bidi-font-weight: normal;">Datasets</b>, and then click <b style="mso-bidi-font-weight: normal;">Add Dataset&hellip;</b>. <o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">2.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Dataset Properties dialog</b>, type the name for the Dataset.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">3.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Select the data source we created in the last step in the <b style="mso-bidi-font-weight: normal;">Data source</b> dropdown list.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">4.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Select <b style="mso-bidi-font-weight: normal;">Text</b> for <b style="mso-bidi-font-weight: normal;">Query type</b>.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">5.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the query textbox, type the following statement:<o:p></o:p></span></span></p>
<div style="padding-bottom: 1pt; padding-left: 4pt; padding-right: 4pt; margin-left: 36pt; margin-right: 0cm; padding-top: 1pt; mso-border-alt: solid windowtext .5pt; mso-element: para-border-div; border: windowtext 1pt solid;">
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">&lt;Query&gt;<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;">&nbsp;&nbsp; </span>&lt;SoapAction&gt;https://schemas.microsoft.com/sharepoint/soap/GetListItems&lt;/SoapAction&gt;<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;">&nbsp;&nbsp; </span>&lt;Method Namespace="https://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems"&gt;<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;Parameters&gt;<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;Parameter Name="listName"&gt;<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;DefaultValue&gt;{5D7A343B-CFE2-4B53-8C51-EEEB87591A12}&lt;/DefaultValue&gt;<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;/Parameter&gt;<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes;">&nbsp;</span>&lt;/Parameters&gt;<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;">&nbsp;&nbsp; </span>&lt;/Method&gt;<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;">&nbsp;&nbsp; </span>&lt;ElementPath IgnoreNamespaces="True"&gt;*&lt;/ElementPath&gt;<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">&lt;/Query&gt;<o:p></o:p></span></span></p>
</div>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Note: You need to replace the value for listName parameter with actual value in your environment.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpLast"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1; mso-no-proof: yes;"></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/3835.wtssrs6.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/3835.wtssrs6.jpg" border="0" /><br style="mso-special-character: line-break;" /><br style="mso-special-character: line-break;" /><o:p></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Add a dummy parameter to the report<o:p></o:p></span></span></b></p>
<p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Report Data</b> panel, right-click <b style="mso-bidi-font-weight: normal;">Parameters</b>, and then click <b style="mso-bidi-font-weight: normal;">Add Parameters&hellip;</b>. <o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Report Parameter Properties</b> dialog, type a name for the parameter.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">2.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Check the item <b style="mso-bidi-font-weight: normal;">Hidden </b>and<b style="mso-bidi-font-weight: normal;"> Allow multiple values</b><o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">3.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Go to <b style="mso-bidi-font-weight: normal;">Available Values</b> tab, set the parameter to get values from the Dataset we set before.</span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/4024.wtssrs7.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/4024.wtssrs7.jpg" border="0" /><br /></span></span>
<p class="MsoListParagraphCxSpLast"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">4.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Go the <b style="mso-bidi-font-weight: normal;">Default Values </b>tab, set the parameter to get values from the Dataset we set before.<br /></span><span style="mso-no-proof: yes;"></span><o:p></o:p></span></p>
<p>&nbsp;</p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #7f7f7f; font-size: 12pt; mso-themecolor: text1; mso-themetint: 128;"><o:p><span style="font-family: Calibri;"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/6746.wtssrs8.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/6746.wtssrs8.jpg" border="0" />&nbsp;</span></o:p></span></b></p>
<p class="MsoListParagraphCxSpMiddle">&nbsp;</p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Embed code to the report<o:p></o:p></span></span></b></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">The code is used to remove duplicate records from the dummy parameter, and then return a unique array.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Click the report body.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">2.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Click the <b style="mso-bidi-font-weight: normal;">Report</b> menu, and select <b style="mso-bidi-font-weight: normal;">Report Properties&hellip;</b><o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">3.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Go to <b style="mso-bidi-font-weight: normal;">Code</b> tab.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">4.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Embed the following code:<o:p></o:p></span></span></p>
<div style="padding-bottom: 1pt; padding-left: 4pt; padding-right: 4pt; margin-left: 36pt; margin-right: 0cm; padding-top: 1pt; mso-border-alt: solid windowtext .5pt; mso-element: para-border-div; border: windowtext 1pt solid;">
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Public Shared Function RemoveDuplicates(parameter As Parameter) As String()<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Dim items As Object() = parameter.Value<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>System.Array.Sort(items)<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Dim k As Integer = 0<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>For i As Integer = 0 To items.Length - 1<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>If i &gt; 0 AndAlso items(i).Equals(items(i - 1)) Then<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 3;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Continue For<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>End If<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>items(k) = items(i)<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 2;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>k += 1<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Next<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Dim unique As [String]() = New [String](k - 1) {}<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>System.Array.Copy(items, 0, unique, 0, k)<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Return unique<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;">&nbsp;</span></o:p></span></p>
<p class="MsoListParagraphCxSpLast"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">End Function<br style="mso-special-character: line-break;" /><br style="mso-special-character: line-break;" /><o:p></o:p></span></span></p>
</div>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;"></span></span></b></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;"></span></span></b></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Create another parameter<o:p></o:p></span></span></b></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">This parameter is used for user interaction. This parameter get the distinct value from the custom code function RemoveDuplicates.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Report Data</b> panel, right-click <b style="mso-bidi-font-weight: normal;">Parameters</b>, and then click <b style="mso-bidi-font-weight: normal;">Add Parameters&hellip;</b>. <o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">2.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">In the <b style="mso-bidi-font-weight: normal;">Report Parameter Properties</b> dialog, type a name for the parameter.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">3.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Go to <b style="mso-bidi-font-weight: normal;">Available Values</b> tab, check item <b style="mso-bidi-font-weight: normal;">Specify values</b> <o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">4.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Click <b style="mso-bidi-font-weight: normal;">Add</b> to add a value, type the following expression in both <b style="mso-bidi-font-weight: normal;">Label</b> and <b style="mso-bidi-font-weight: normal;">Value</b> textbox.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">=Code.RemoveDuplicates(Parameters!DummyParameter)<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Note: the <b style="mso-bidi-font-weight: normal;">DummyParameter</b> is name of the dummy parameter.</span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/5008.wtssrs9.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/5008.wtssrs9.jpg" border="0" /><br /></span></span>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">5.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Go to <b style="mso-bidi-font-weight: normal;">Default Values</b> tab, check item <b style="mso-bidi-font-weight: normal;">Specify values</b> <o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">6.</span><span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Click <b style="mso-bidi-font-weight: normal;">Add</b> to add a value, type the following expression in the <b style="mso-bidi-font-weight: normal;">Value</b> textbox.<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">If Allow multiple values is checked, please use the following expression<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">=Code.RemoveDuplicates(Parameters!DummyParameter)<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Otherwise, you can use: <br />=Code.RemoveDuplicates(Parameters!DummyParameter)(0)<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Note: the <b style="mso-bidi-font-weight: normal;">DummyParameter</b> is name of the dummy parameter.</span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"><o:p><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/6266.wtssrs10.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/6266.wtssrs10.jpg" border="0" /></o:p></span></span></p>
<p class="MsoListParagraphCxSpLast"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1; mso-no-proof: yes;"></span><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Additionally, if you use cascading parameter, and the child parameter includes duplicate records, please use the custom code function to remove the duplicate records.<o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><o:p><span style="font-family: Calibri;"></span></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Reference<o:p></o:p></span></span></b></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">Custom Code and Assembly References in Expressions in Report Designer (SSRS)</span></span></p>
<p class="MsoNormal"><a href="https://msdn.microsoft.com/en-us/library/ms159238.aspx"><span style="line-height: 115%; font-size: 12pt;"><span style="font-family: Calibri; color: #0000ff;">https://msdn.microsoft.com/en-us/library/ms159238.aspx</span></span></a><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"> <o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;">XML Connection Type (SSRS)</span></span></p>
<p class="MsoNormal"><a href="https://msdn.microsoft.com/en-us/library/dd220468.aspx"><span style="line-height: 115%; font-size: 12pt;"><span style="font-family: Calibri; color: #0000ff;">https://msdn.microsoft.com/en-us/library/dd220468.aspx</span></span></a><span style="line-height: 115%; color: black; font-size: 12pt; mso-themecolor: text1;"><span style="font-family: Calibri;"> <o:p></o:p></span></span></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; color: black; font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: text1; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;">Lists.GetListItems Method</span></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"><a href="https://msdn.microsoft.com/en-us/library/lists.lists.getlistitems(v=office.12).aspx"><span style="line-height: 115%; font-size: 12pt;"><span style="color: #0000ff;">https://msdn.microsoft.com/en-us/library/lists.lists.getlistitems(v=office.12).aspx</span></span></a></span></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"></span></p>
<p><span style="line-height: 115%; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Samples/7776.Walkthrough-RemoveDupsReportProject.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Samples/7776.Walkthrough_2D00_RemoveDupsReportProject.zip">[download sample]</a></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</p>
<p><span style="mso-no-proof: yes;"></span><o:p></o:p></p>
</p>
<p><span style="mso-no-proof: yes;"></span><o:p></o:p></p>
</p>
<p><span style="mso-no-proof: yes;"></span><o:p></o:p></p>
</p>]]></content:encoded>
    </item>
    <item>
      <title>Walkthrough: Assign Dataset Dynamically Created in Code to your local report with ReportViewer</title>
      <link>https://docs.microsoft.com/archive/blogs/sqlforum/walkthrough-assign-dataset-dynamically-created-in-code-to-your-local-report-with-reportviewer</link>
      <pubDate>Wed, 27 Apr 2011 19:56:00 GMT</pubDate>
      <dc:creator><![CDATA[SQL Server Forum Support Team]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/sqlforum/2011/04/27/walkthrough-assign-dataset-dynamically-created-in-code-to-your-local-report-with-reportviewer/</guid>
      <description><![CDATA[The Walkthrough: Creating a ReportViewer Report shows how to create a simple table report in a...]]></description>
      <content:encoded><![CDATA[<p class="MsoNormal"><span style="font-family: 'Segoe UI','sans-serif'; font-size: 10pt;">The </span><a href="https://msdn.microsoft.com/en-us/library/ms252073.aspx"><span style="font-family: 'Segoe UI','sans-serif'; font-size: 10pt;"><span style="color: #0000ff;">Walkthrough: Creating a ReportViewer Report</span></span></a><span style="font-family: 'Segoe UI','sans-serif'; font-size: 10pt;"> shows how to create a simple table report in a Visual Studio Windows Forms application project based on a predefined dataset and data table in the project. However, sometimes the dataset need to be displayed is not the one you predefined, so the dataset structure cannot be retrieved when you design the report. This article will walk you through the processes of designing a local report and binding it to a dynamically created dataset in code.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: 'Segoe UI','sans-serif'; font-size: 10pt;">The sample in this article uses the sample AdventureWorksDW2008R2 database. The report displays the Product Category list containing both the category key and category name columns.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p><span style="font-family: Calibri; font-size: small;">&nbsp;</span></o:p></p>
<p class="MsoNormal"><span style="color: #548dd4; font-size: 16pt; mso-font-kerning: 0pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Create a new Windows Forms application project<o:p></o:p></span></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">1.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Open Visual Studio. On the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">File</span></strong><span class="apple-converted-space">&nbsp;</span>menu, point to<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">New</span></strong>, and then select<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Project</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">2.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">In the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Installed Templates</span></strong><span class="apple-converted-space">&nbsp;</span>pane, select<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Visual C#</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">3.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Choose<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Windows Forms Application</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">4.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">In the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Name</span></strong><span class="apple-converted-space">&nbsp;</span>box, type<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">SimpleReport</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">5.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">In the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Location</span></strong><span class="apple-converted-space">&nbsp;</span>box, enter the directory in which you want to save your project, or click<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Browse</span></strong><span class="apple-converted-space">&nbsp;</span>to navigate to it.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">6.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Click OK.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: #548dd4; font-size: 16pt; mso-font-kerning: 0pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Define a dataset for report designing <o:p></o:p></span></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">1.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">In the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Project</span></strong><span class="apple-converted-space">&nbsp;</span>menu, select<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Add New Item</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">2.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">In the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Add New Item</span></strong><span class="apple-converted-space">&nbsp;</span>dialog, click<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">DataSet</span></strong>. Type a name for the dataset and click<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Add</span></strong>. The default name is<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">DataSet1.xsd</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">This adds a new XSD file to the project and opens the Dataset Designer.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">3.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">From the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Toolbox</span></strong><span class="apple-converted-space">&nbsp;</span>in the Dataset Designer, drag a<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">DataTable</span></strong><span class="apple-converted-space">&nbsp;</span>control onto the design surface.<o:p></o:p></span></p>
<p><span class="apple-style-span"><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">We need to set the schema of this table matching the one will be created in code</span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;"><o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">4.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Right click the DataTable and select <b style="mso-bidi-font-weight: normal;">Add</b> -&gt; <b style="mso-bidi-font-weight: normal;">Column</b>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">5.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Type in <b style="mso-bidi-font-weight: normal;">ProductCategoryKey</b> as the Data Column name.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">6.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Add another column set the name to <b style="mso-bidi-font-weight: normal;">EnglishProductCategoryName</b><o:p></o:p></span></p>
<p><span class="apple-style-span"><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">7.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span></span><span class="apple-style-span"><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Save the <b style="mso-bidi-font-weight: normal;">DataSet1</b> file.<o:p></o:p></span></span></p>
<p><span style="font-family: 'Calibri','sans-serif'; color: #548dd4; font-size: 16pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: text2; mso-themetint: 153;">Add a new report definition file using the Report Wizard<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">1.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">From the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Project</span></strong><span class="apple-converted-space">&nbsp;</span>menu, select<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">AddNew Item</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">2.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">In the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Add New Item</span></strong><span class="apple-converted-space">&nbsp;</span>dialog box, choose<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Report Wizard</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">3.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">In<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Name</span></strong>, type<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Product Category.rdlc</span></strong><span class="apple-converted-space">&nbsp;</span>and then click<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Add.</span></strong><o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">A graphical design surface opens behind the dialog box.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">4.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">In the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Dataset Properties</span></strong><span class="apple-converted-space">&nbsp;</span>page, in the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Data source</span></strong><span class="apple-converted-space">&nbsp;</span>drop-down list, select <strong><span style="font-family: 'Segoe UI','sans-serif';">DataSet1</span></strong><span class="apple-converted-space">&nbsp;</span>you created.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">The<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Available datasets</span></strong><span class="apple-converted-space">&nbsp;</span>box is automatically updated with<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">DataTable1</span></strong><span class="apple-converted-space">&nbsp;</span>you created.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">5.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Click<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Next</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">6.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">In the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Arrange Fields</span></strong><span class="apple-converted-space">&nbsp;</span>page, drag both<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Category</span></strong><span class="apple-converted-space">&nbsp;and </span><strong><span style="font-family: 'Segoe UI','sans-serif';">Sales</span></strong> from<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Available fields</span></strong><span class="apple-converted-space">&nbsp;</span>to the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Values</span></strong><span class="apple-converted-space">&nbsp;</span>box.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">7.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Click<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Next</span></strong><span class="apple-converted-space">&nbsp;</span>twice, then click<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Finish</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">This creates the .rdlc file and opens it in Report Designer. The tablix you designed is now displayed in the design surface like this:</span></p>
<table border="0" style="padding-left: 60px;">
<tbody>
<tr>
<td>Product Category Key</td>
<td>English Product Category Name</td>
</tr>
<tr>
<td>[ProductCategoryKey]</td>
<td>[EnglishProductCategoryName]</td>
</tr>
</tbody>
</table>
<p><span style="mso-no-proof: yes;"><v:shapetype coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f" id="_x0000_t75"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></v:path><o:lock v:ext="edit" aspectratio="t"></o:lock></v:shapetype></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;"><o:p></o:p></span></p>
<p><span style="font-family: 'Calibri','sans-serif'; color: #548dd4; font-size: 16pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: text2; mso-themetint: 153;">Add the ReportViewer control to your form<b style="mso-bidi-font-weight: normal;"><o:p></o:p></b></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">1.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Click<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Form1.cs</span></strong><span class="apple-converted-space">&nbsp;</span>in Solution Explorer.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">2.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">From the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">View</span></strong><span class="apple-converted-space">&nbsp;</span>menu, choose<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Designer</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">3.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">From the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Reporting</span></strong><span class="apple-converted-space">&nbsp;</span>section of the Toolbox, drag the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">ReportViewer</span></strong><span class="apple-converted-space">&nbsp;</span>control to the form.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">4.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Open the smart tags panel of the ReportViewer1 control by clicking the smart-tag glyph on the top right corner. Click the<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Choose Report </span></strong>drop-down list and select<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">SimpleReport.Sales Orders.rdlc</span></strong>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Notice that a <b style="mso-bidi-font-weight: normal;">BindingSource</b> is automatically created corresponding to which point to <b style="mso-bidi-font-weight: normal;">DataSet1</b> as <b style="mso-bidi-font-weight: normal;">DataSource</b>.<o:p></o:p></span></p>
<p><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">5.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">From the smart tags panel, click<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Dock in parent container</span></strong>.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: #548dd4; font-size: 16pt; mso-font-kerning: 0pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Specify the dataset in code to the ReportViewer<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpFirst"><span style="line-height: 115%; font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-bidi-font-size: 9.5pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">1.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Click<span class="apple-converted-space">&nbsp;</span><strong><span style="font-family: 'Segoe UI','sans-serif';">Form1.cs</span></strong><span class="apple-converted-space">&nbsp;</span>in Solution Explorer and select <b style="mso-bidi-font-weight: normal;">View Code</b>.</span><span style="line-height: 115%; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></p>
<p class="MsoListParagraphCxSpLast"><span style="line-height: 115%; font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-bidi-font-size: 16.0pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">2.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">Add the following code to the <b style="mso-bidi-font-weight: normal;">Form_Load</b> event. Since we need access SQL Server Database, please also add </span><span style="line-height: 115%; font-family: Consolas; color: blue; font-size: 9.5pt;">using</span><span style="line-height: 115%; font-family: Consolas; font-size: 9.5pt;"> System.Data.SqlClient </span><span style="line-height: 115%; font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt;">in the namespace.</span><b style="mso-bidi-font-weight: normal;"><span style="line-height: 115%; color: #548dd4; font-size: 16pt; mso-themecolor: text2; mso-themetint: 153;"><o:p></o:p></span></b></p>
<table cellpadding="0" cellspacing="0" border="1" class="MsoTableGrid" style="border-collapse: collapse; background: #f2f2f2; mso-background-themecolor: background1; mso-background-themeshade: 242; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt;">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;">
<td width="568" valign="top" style="padding-bottom: 0cm; background-color: transparent; padding-left: 5.4pt; width: 426.1pt; padding-right: 5.4pt; padding-top: 0cm; mso-border-alt: solid windowtext .5pt; border: windowtext 1pt solid;">
<p class="MsoNormal" align="left"><span style="font-family: Consolas; color: blue; font-size: 9.5pt; mso-font-kerning: 0pt;">private</span><span style="font-family: Consolas; font-size: 9.5pt; mso-font-kerning: 0pt;"> <span style="color: blue;">void</span> Form1_Load(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)<o:p></o:p></span></p>
<p class="MsoNormal" align="left"><span style="font-family: Consolas; font-size: 9.5pt; mso-font-kerning: 0pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></p>
<p class="MsoNormal" align="left"><span style="font-family: Consolas; font-size: 9.5pt; mso-font-kerning: 0pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #2b91af;">SqlConnection</span> con = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlConnection</span>(<span style="color: #a31515;">"Data Source=.; Initial Catalog=AdventureWorksDW2008R2; Integrated Security=True"</span>);<o:p></o:p></span></p>
<p class="MsoNormal" align="left"><span style="font-family: Consolas; font-size: 9.5pt; mso-font-kerning: 0pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #2b91af;">SqlDataAdapter</span> da = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlDataAdapter</span>(<span style="color: #a31515;">"SELECT ProductCategoryKey, EnglishProductCategoryName FROM DimProductCategory"</span>, con);<o:p></o:p></span></p>
<p class="MsoNormal" align="left"><span style="font-family: Consolas; font-size: 9.5pt; mso-font-kerning: 0pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #2b91af;">DataSet</span> ds = <span style="color: blue;">new</span> <span style="color: #2b91af;">DataSet</span>();<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></p>
<p class="MsoNormal" align="left"><span style="font-family: Consolas; font-size: 9.5pt; mso-font-kerning: 0pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>da.Fill(ds);<o:p></o:p></span></p>
<p class="MsoNormal" align="left"><span style="font-family: Consolas; font-size: 9.5pt; mso-font-kerning: 0pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>ds.Tables[0].TableName = <span style="color: #a31515;">"DataTable1"</span>;<o:p></o:p></span></p>
<p class="MsoNormal" align="left"><span style="font-family: Consolas; font-size: 9.5pt; mso-font-kerning: 0pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></p>
<p class="MsoNormal" align="left"><span style="font-family: Consolas; font-size: 9.5pt; mso-font-kerning: 0pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">this</span>.DataTable1BindingSource.DataSource = ds;<o:p></o:p></span></p>
<p class="MsoNormal" align="left"><span style="font-family: Consolas; font-size: 9.5pt; mso-font-kerning: 0pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">this</span>.reportViewer1.RefreshReport();<o:p></o:p></span></p>
<p class="MsoNormal" align="left"><span style="font-family: Consolas; font-size: 9.5pt; mso-font-kerning: 0pt;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></p>
<p class="MsoNormal"><o:p><span style="font-family: Calibri; font-size: small;">&nbsp;</span></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-themecolor: text1;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-themecolor: text1;">In the code, </span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 宋体; mso-font-kerning: 0pt; mso-themecolor: text1;">we change the <b style="mso-bidi-font-weight: normal;">BindingSource</b> to point the dataset created in the code.</span><span style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-themecolor: text1;"><o:p></o:p></span></p>
<p class="MsoListParagraph"><span style="line-height: 115%; font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-fareast-font-family: 'Segoe UI';"><span style="mso-list: Ignore;">3.<span style="font: 7pt 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="line-height: 115%; font-family: 'Segoe UI','sans-serif'; font-size: 10pt;">Build the project and run it.<span style="color: black; mso-themecolor: text1;"> Then we can get the result like this:<o:p></o:p></span></span></p>
<p class="MsoNormalCxSpFirst"><span style="line-height: 115%; font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-themecolor: text1; mso-no-proof: yes;">&nbsp;</span><span style="line-height: 115%; font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-themecolor: text1;"><o:p></o:p></span></p>
<p class="MsoNormalCxSpMiddle"><span style="line-height: 115%; font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-themecolor: text1;"><o:p>&nbsp;<img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Images/1300.wtrptviewer6.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Images/1300.wtrptviewer6.png" border="0" /></o:p></span></p>
<p class="MsoNormalCxSpMiddle"><span style="line-height: 115%; font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10pt; mso-themecolor: text1;">Besides dataset, you can also bind the datasource with a Linq result set but just remember to keep the same data scheme as that defined in your report.<o:p></o:p></span></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="color: #548dd4; font-size: 16pt; mso-font-kerning: 0pt; mso-themecolor: text2; mso-themetint: 153;"><span style="font-family: Calibri;">Reference<o:p></o:p></span></span></b></p>
<p><span style="font-family: 'Calibri','sans-serif'; font-size: 10.5pt; mso-bidi-font-size: 11.0pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"><a href="https://msdn.microsoft.com/en-us/library/ms251686(v=VS.100).aspx"><span style="font-family: 'Segoe UI','sans-serif'; font-size: 10pt;"><span style="color: #0000ff;">Samples and Workthroughs</span></span></a></span></p>
<p><span style="font-family: 'Calibri','sans-serif'; font-size: 10.5pt; mso-bidi-font-size: 11.0pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;">&nbsp;</span></p>
<p><span style="font-family: 'Calibri','sans-serif'; font-size: 10.5pt; mso-bidi-font-size: 11.0pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/33/Samples/3225.Walkthrough-SimpleReport.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-33-Samples/3225.Walkthrough_2D00_SimpleReport.zip">[download sample]</a></span></p>]]></content:encoded>
    </item>
  </channel>
</rss>