﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / parameterized queries behaviour on partitioned tables / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 20 May 2013 13:44:30 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: parameterized queries behaviour on partitioned tables</title><link>http://www.sqlservercentral.com/Forums/Topic743276-146-1.aspx</link><description>It should only access the partition where the data resides.  Yo should be able to verify this by having SSMS show you the actual execution plan when running the query.</description><pubDate>Sun, 28 Jun 2009 21:23:27 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>parameterized queries behaviour on partitioned tables</title><link>http://www.sqlservercentral.com/Forums/Topic743276-146-1.aspx</link><description>how does SQL-Server 2005 behave when i run parameterized queries on a partitioned table? does the partition pruning mechanism still work or do i need to do something so that the pruning mechanism will continue to work? for example : the table RECORDS has four columns :record_id char(10)record_type smallintcustomer_id smallintcreation_date datetimeand is partitioned by the column customer_id.if i'll issue the query :select * from RECORDS where customer_id  = : x;will SQL-Server access all partitions or will it  access only the needed partition? if the first option is true, how can i make it access only the needed partition?any information on that matter will help. thanks is advance, Hanan.</description><pubDate>Sun, 28 Jun 2009 08:38:34 GMT</pubDate><dc:creator>HananLevy</dc:creator></item></channel></rss>