Skip to content

Commit

Permalink
1.0.3 Partial Update 5
Browse files Browse the repository at this point in the history
Changed the name of the parameter @tableNamePattern to @tableName to be
uniform across the library
  • Loading branch information
NikoNeugebauer committed Nov 28, 2015
1 parent fcb2bff commit a04007a
Show file tree
Hide file tree
Showing 8 changed files with 379 additions and 13 deletions.
7 changes: 5 additions & 2 deletions Azure/StoredProcs/cstore_SuggestedTables.sql
Expand Up @@ -24,6 +24,9 @@
- CLR support is not included or tested
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
- InMemory OLTP compatibility is not tested
Changes in 1.0.3
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
*/

declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
Expand All @@ -47,7 +50,7 @@ create procedure dbo.cstore_SuggestedTables(
@minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableNamePattern nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
@showReadyTablesOnly bit = 0, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
Expand Down Expand Up @@ -189,7 +192,7 @@ begin
from sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (5,6) ) = 0 -- Filtering out tables with existing Columnstore Indexes
and (@tableNamePattern is null or object_name (t.object_id) like '%' + @tableNamePattern + '%')
and (@tableName is null or object_name (t.object_id) like '%' + @tableName + '%')
and (@schemaName is null or object_schema_name( t.object_id ) = @schemaName)
and (( @showReadyTablesOnly = 1
and
Expand Down
5 changes: 4 additions & 1 deletion Azure/suggested_tables.sql
Expand Up @@ -24,13 +24,16 @@
- CLR support is not included or tested
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
- InMemory OLTP compatibility is not tested
Changes in 1.0.3
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
*/

-- Params --
declare @minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableNamePattern nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
@showReadyTablesOnly bit = 1, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
Expand Down
7 changes: 5 additions & 2 deletions SQL-2012/StoredProcs/cstore_SuggestedTables.sql
Expand Up @@ -24,6 +24,9 @@
- CLR support is not included or tested
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
- Data Precision is not being taken into account
Changes in 1.0.3
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
*/

declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
Expand Down Expand Up @@ -54,7 +57,7 @@ create procedure dbo.cstore_SuggestedTables(
@minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableNamePattern nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
@showReadyTablesOnly bit = 0, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
Expand Down Expand Up @@ -183,7 +186,7 @@ begin
from sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (5,6) ) = 0
and (@tableNamePattern is null or object_name (t.object_id) like '%' + @tableNamePattern + '%')
and (@tableName is null or object_name (t.object_id) like '%' + @tableName + '%')
and (@schemaName is null or object_schema_name( t.object_id ) = @schemaName)
and (( @showReadyTablesOnly = 1
and
Expand Down
7 changes: 5 additions & 2 deletions SQL-2012/suggested_tables.sql
Expand Up @@ -24,13 +24,16 @@
- CLR support is not included or tested
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
- Data Precision is not being taken into account
Changes in 1.0.3
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
*/

-- Params --
declare @minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableNamePattern nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
@showReadyTablesOnly bit = 0, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
Expand Down Expand Up @@ -180,7 +183,7 @@ select t.object_id as [ObjectId]
from sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (5,6) ) = 0
and (@tableNamePattern is null or object_name (t.object_id) like '%' + @tableNamePattern + '%')
and (@tableName is null or object_name (t.object_id) like '%' + @tableName + '%')
and (@schemaName is null or object_schema_name( t.object_id ) = @schemaName)
and (( @showReadyTablesOnly = 1
and
Expand Down
7 changes: 5 additions & 2 deletions SQL-2014/StoredProcs/cstore_SuggestedTables.sql
Expand Up @@ -23,6 +23,9 @@
- @showTSQLCommandsBeta parameter is in alpha version and not pretending to be complete any time soon. This output is provided as a basic help & guide convertion to Columnstore Indexes.
- CLR support is not included or tested
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
Changes in 1.0.3
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
*/

declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
Expand Down Expand Up @@ -52,7 +55,7 @@ create procedure dbo.cstore_SuggestedTables(
@minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableNamePattern nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
@showReadyTablesOnly bit = 0, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
Expand Down Expand Up @@ -194,7 +197,7 @@ begin
from sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (5,6) ) = 0 -- Filtering out tables with existing Columnstore Indexes
and (@tableNamePattern is null or object_name (t.object_id) like '%' + @tableNamePattern + '%')
and (@tableName is null or object_name (t.object_id) like '%' + @tableName + '%')
and (@schemaName is null or object_schema_name( t.object_id ) = @schemaName)
and (( @showReadyTablesOnly = 1
and
Expand Down
7 changes: 5 additions & 2 deletions SQL-2014/suggested_tables.sql
Expand Up @@ -23,13 +23,16 @@
- @showTSQLCommandsBeta parameter is in alpha version and not pretending to be complete any time soon. This output is provided as a basic help & guide convertion to Columnstore Indexes.
- CLR support is not included or tested
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
Changes in 1.0.3
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
*/

-- Params --
declare @minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableNamePattern nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
@showReadyTablesOnly bit = 0, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
Expand Down Expand Up @@ -190,7 +193,7 @@ select t.object_id as [ObjectId]
from sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (5,6) ) = 0 -- Filtering out tables with existing Columnstore Indexes
and (@tableNamePattern is null or object_name (t.object_id) like '%' + @tableNamePattern + '%')
and (@tableName is null or object_name (t.object_id) like '%' + @tableName + '%')
and (@schemaName is null or object_schema_name( t.object_id ) = @schemaName)
and (( @showReadyTablesOnly = 1
and
Expand Down

0 comments on commit a04007a

Please sign in to comment.