Skip to content

Commit a04007a

Browse files
1.0.3 Partial Update 5
Changed the name of the parameter @tableNamePattern to @tableName to be uniform across the library
1 parent fcb2bff commit a04007a

8 files changed

+379
-13
lines changed

Azure/StoredProcs/cstore_SuggestedTables.sql

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
- CLR support is not included or tested
2525
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
2626
- InMemory OLTP compatibility is not tested
27+
28+
Changes in 1.0.3
29+
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
2730
*/
2831

2932
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@@ -47,7 +50,7 @@ create procedure dbo.cstore_SuggestedTables(
4750
@minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
4851
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
4952
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
50-
@tableNamePattern nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
53+
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
5154
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
5255
@showReadyTablesOnly bit = 0, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
5356
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
@@ -189,7 +192,7 @@ begin
189192
from sys.indexes ind
190193
where t.object_id = ind.object_id
191194
and ind.type in (5,6) ) = 0 -- Filtering out tables with existing Columnstore Indexes
192-
and (@tableNamePattern is null or object_name (t.object_id) like '%' + @tableNamePattern + '%')
195+
and (@tableName is null or object_name (t.object_id) like '%' + @tableName + '%')
193196
and (@schemaName is null or object_schema_name( t.object_id ) = @schemaName)
194197
and (( @showReadyTablesOnly = 1
195198
and

Azure/suggested_tables.sql

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@
2424
- CLR support is not included or tested
2525
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
2626
- InMemory OLTP compatibility is not tested
27+
28+
Changes in 1.0.3
29+
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
2730
*/
2831

2932
-- Params --
3033
declare @minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
3134
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
3235
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
33-
@tableNamePattern nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
36+
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
3437
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
3538
@showReadyTablesOnly bit = 1, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
3639
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables

SQL-2012/StoredProcs/cstore_SuggestedTables.sql

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
- CLR support is not included or tested
2525
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
2626
- Data Precision is not being taken into account
27+
28+
Changes in 1.0.3
29+
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
2730
*/
2831

2932
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@@ -54,7 +57,7 @@ create procedure dbo.cstore_SuggestedTables(
5457
@minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
5558
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
5659
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
57-
@tableNamePattern nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
60+
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
5861
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
5962
@showReadyTablesOnly bit = 0, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
6063
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
@@ -183,7 +186,7 @@ begin
183186
from sys.indexes ind
184187
where t.object_id = ind.object_id
185188
and ind.type in (5,6) ) = 0
186-
and (@tableNamePattern is null or object_name (t.object_id) like '%' + @tableNamePattern + '%')
189+
and (@tableName is null or object_name (t.object_id) like '%' + @tableName + '%')
187190
and (@schemaName is null or object_schema_name( t.object_id ) = @schemaName)
188191
and (( @showReadyTablesOnly = 1
189192
and

SQL-2012/suggested_tables.sql

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@
2424
- CLR support is not included or tested
2525
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
2626
- Data Precision is not being taken into account
27+
28+
Changes in 1.0.3
29+
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
2730
*/
2831

2932
-- Params --
3033
declare @minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
3134
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
3235
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
33-
@tableNamePattern nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
36+
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
3437
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
3538
@showReadyTablesOnly bit = 0, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
3639
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
@@ -180,7 +183,7 @@ select t.object_id as [ObjectId]
180183
from sys.indexes ind
181184
where t.object_id = ind.object_id
182185
and ind.type in (5,6) ) = 0
183-
and (@tableNamePattern is null or object_name (t.object_id) like '%' + @tableNamePattern + '%')
186+
and (@tableName is null or object_name (t.object_id) like '%' + @tableName + '%')
184187
and (@schemaName is null or object_schema_name( t.object_id ) = @schemaName)
185188
and (( @showReadyTablesOnly = 1
186189
and

SQL-2014/StoredProcs/cstore_SuggestedTables.sql

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
- @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.
2424
- CLR support is not included or tested
2525
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
26+
27+
Changes in 1.0.3
28+
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
2629
*/
2730

2831
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@@ -52,7 +55,7 @@ create procedure dbo.cstore_SuggestedTables(
5255
@minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
5356
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
5457
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
55-
@tableNamePattern nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
58+
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
5659
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
5760
@showReadyTablesOnly bit = 0, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
5861
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
@@ -194,7 +197,7 @@ begin
194197
from sys.indexes ind
195198
where t.object_id = ind.object_id
196199
and ind.type in (5,6) ) = 0 -- Filtering out tables with existing Columnstore Indexes
197-
and (@tableNamePattern is null or object_name (t.object_id) like '%' + @tableNamePattern + '%')
200+
and (@tableName is null or object_name (t.object_id) like '%' + @tableName + '%')
198201
and (@schemaName is null or object_schema_name( t.object_id ) = @schemaName)
199202
and (( @showReadyTablesOnly = 1
200203
and

SQL-2014/suggested_tables.sql

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,16 @@
2323
- @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.
2424
- CLR support is not included or tested
2525
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
26+
27+
Changes in 1.0.3
28+
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
2629
*/
2730

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

0 commit comments

Comments
 (0)