Tuesday, July 5, 2016

Get List of Partitioned Tables in SQL Server

Table partitions have lot of benefits, although they can not be used for direct query mode of the latest SSAS Tabular cubes. The script copied here displays a list of all partitioned tables in a database

select distinct t.name
from sys.partitions p
inner join sys.tables t
on p.object_id = t.object_id
where p.partition_number <> 1
Copied from http://dba.stackexchange.com/questions/14996/how-do-i-get-a-list-of-all-the-partitioned-tables-in-my-database

No comments:

SSL Error - The connection for this site is not secure

 After cloning a git repo of dot net framework website and trying to run it all I could see was this error Turns out the fix was to simply e...