Search results matching tags 'merge' and 'DMVs'http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&tag=merge,DMVs&orTags=0Search results matching tags 'merge' and 'DMVs'en-USCommunityServer 2.1 SP2 (Build: 61129.1)Connect Digest : 2011-05-16http://sqlblog.com/blogs/aaron_bertrand/archive/2011/05/16/connect-digest-2011-05-16.aspxMon, 16 May 2011 11:19:00 GMT21093a07-8b3d-42db-8cbf-3350fcbf5496:35372AaronBertrand<p>This week we're going to take a look at issues with filtered indexes. This feature was a very welcome addition in SQL Server 2008 and has enjoyed widespread usage if conversations on twitter and forums are any indication. But their implementation is not perfect - bugs in SSMS and numerous restrictions on their use have certainly reduced their impact, or at least made much more work for folks using them.<br></p><br><b>SSMS failures</b><br><blockquote><p>Several people have reported various cases where Management Studio trips over filtered index functionality. I would only expect these bugs to be fixed in either 2008 R2 SSMS or Denali (in some cases both) - don't hold out for your 2005 or even 2008 versions of SSMS to be fixed for filtered index or other "new feature" issues.<br></p><p><a href="http://connect.microsoft.com/SQLServer/feedback/details/526911/ssms-table-designer-fails-to-correctly-script-filtered-index" title="http://connect.microsoft.com/SQLServer/feedback/details/526911/ssms-table-designer-fails-to-correctly-script-filtered-index" target="_blank">#526911 : Table designer fails to correctly script filtered index</a><br><br><a href="http://connect.microsoft.com/SQLServer/feedback/details/462053/the-filter-expression-of-a-filtered-index-is-lost-when-a-table-is-modified-by-the-table-designer" title="http://connect.microsoft.com/SQLServer/feedback/details/462053/the-filter-expression-of-a-filtered-index-is-lost-when-a-table-is-modified-by-the-table-designer" target="_blank">#462053 : The filter expression of a filtered index is lost when a table is modified by the Table Designer</a><br>
<br><a href="http://connect.microsoft.com/SQLServer/feedback/details/362699/2008-rtm-ssms-engine-table-designer-doesnt-script-where-clause-in-filtered-indexes" title="http://connect.microsoft.com/SQLServer/feedback/details/362699/2008-rtm-ssms-engine-table-designer-doesnt-script-where-clause-in-filtered-indexes" target="_blank">#362699 : Table designer doesn't script WHERE clause in filtered indexes</a><br>&nbsp;
<br><a href="http://connect.microsoft.com/SQLServer/feedback/details/330238/msft-bicoe-csat-there-is-no-way-of-creating-filtered-index-from-ssms-while-designing-a-new-table" title="http://connect.microsoft.com/SQLServer/feedback/details/330238/msft-bicoe-csat-there-is-no-way-of-creating-filtered-index-from-ssms-while-designing-a-new-table" target="_blank">#330238 : There is no way of creating filtered index from SSMS while designing a new table</a><br>
<br><a href="http://connect.microsoft.com/SQLServer/feedback/details/521333/view-dependencies-fails-with-transact-sql-error-515" title="http://connect.microsoft.com/SQLServer/feedback/details/521333/view-dependencies-fails-with-transact-sql-error-515" target="_blank">#521333 : View Dependencies fails with Transact-SQL Error 515</a></p></blockquote><p><br><b>Engine failures</b></p><blockquote><p>Well, there is only one of these outstanding at this time, at least that I could find. I suspect this has to do with the testing matrix - they added both filtered indexes and MERGE in SQL Server 2008, but did not thoroughly test them *together.* There is a <a href="http://social.technet.microsoft.com/Forums/en-US/transactsql/thread/32727b47-fd03-4033-8140-510876ccada2" title="http://social.technet.microsoft.com/Forums/en-US/transactsql/thread/32727b47-fd03-4033-8140-510876ccada2" target="_blank">discussion thread on the MSDN forums</a> about this specific issue:<br></p><p><a href="http://connect.microsoft.com/SQLServer/feedback/details/596086/merge-statement-bug-when-insert-delete-used-and-filtered-index" title="http://connect.microsoft.com/SQLServer/feedback/details/596086/merge-statement-bug-when-insert-delete-used-and-filtered-index" target="_blank">#596086 : MERGE statement bug when INSERT/DELETE used and filtered index</a><br></p></blockquote><p><br><b>Missing functionality</b></p><blockquote><p>Some of these items are categorized as bugs, but I believe they simply represent scope creep. One of the items actually says something along the lines of, "It's not a bug; it's a known gap in functionality." Personally I think they got the bare minimum into SQL Server 2008 (supporting unique constraints the ANSI standard way, where more than one row can be NULL), and had no intention of supporting all of the other things that could make filtered indexes even more useful. If you find any of these suggestions valuable, please comment and vote - hopefully we can convince them to invest some time into this feature area for the next version after Denali! </p><p><a href="http://connect.microsoft.com/SQLServer/feedback/details/454744/filtered-index-not-used-and-key-lookup-with-no-output" title="http://connect.microsoft.com/SQLServer/feedback/details/454744/filtered-index-not-used-and-key-lookup-with-no-output" target="_blank">#454744 : Filtered index not used and key lookup with no output</a><a href="http://connect.microsoft.com/SQLServer/feedback/details/341891/filtered-index-creation-failed-with-not-in-clause" title="http://connect.microsoft.com/SQLServer/feedback/details/341891/filtered-index-creation-failed-with-not-in-clause" target="_blank"><br><br>#341891 : Filtered index creation failed with NOT IN clause</a><a href="http://connect.microsoft.com/SQLServer/feedback/details/341737/filtered-index-does-not-allow-filters-on-disjunctions%20" title="http://connect.microsoft.com/SQLServer/feedback/details/341737/filtered-index-does-not-allow-filters-on-disjunctions " target="_blank"><br><br>#341737 : Filtered index does not allow filters on disjunctions</a><a href="http://connect.microsoft.com/SQLServer/feedback/details/648551/" title="http://connect.microsoft.com/SQLServer/feedback/details/648551/" target="_blank"><br><br>#648551 : filtered index on indexed view</a><a href="http://connect.microsoft.com/SQLServer/feedback/details/666238/support-for-more-complex-where-clause-in-filtered-indexes" title="http://connect.microsoft.com/SQLServer/feedback/details/666238/support-for-more-complex-where-clause-in-filtered-indexes" target="_blank"><br><br>#666238 : Support for more complex WHERE clause in filtered indexes</a><a href="http://connect.microsoft.com/SQLServer/feedback/details/518328/should-be-possible-to-create-a-filtered-index-on-a-deterministic-persisted-computed-column" title="http://connect.microsoft.com/SQLServer/feedback/details/518328/should-be-possible-to-create-a-filtered-index-on-a-deterministic-persisted-computed-column" target="_blank"><br><br>#518328 : Should be possible to create a filtered index on a deterministic persisted computed column</a><a href="http://connect.microsoft.com/SQLServer/feedback/details/498009/allow-filtered-unique-index-to-be-a-canditate-key-for-a-foreign-key" title="http://connect.microsoft.com/SQLServer/feedback/details/498009/allow-filtered-unique-index-to-be-a-canditate-key-for-a-foreign-key" target="_blank"><br><br>#498009 : Allow filtered unique index to be a canditate key for a foreign key</a><a href="http://connect.microsoft.com/SQLServer/feedback/details/329805/enhancements-to-the-missing-indexes-dmvs-for-filtered-indexes" title="http://connect.microsoft.com/SQLServer/feedback/details/329805/enhancements-to-the-missing-indexes-dmvs-for-filtered-indexes" target="_blank"><br><br>#329805 : Enhancements to the missing indexes DMV's for filtered indexes</a><br></p></blockquote><br>&nbsp;<br>