René's URL Explorer Experiment


Title: ColumnstoreOptimize @table parameter doesn't handle '-' values correctly · Issue #3 · ProdataSQL/SynapseTools · GitHub

Open Graph Title: ColumnstoreOptimize @table parameter doesn't handle '-' values correctly · Issue #3 · ProdataSQL/SynapseTools

X Title: ColumnstoreOptimize @table parameter doesn't handle '-' values correctly · Issue #3 · ProdataSQL/SynapseTools

Description: Hello! I faced an issue while I was trying to exclude a table from an entire schema on the ColumnstoreOptimize procedure (just like on StatsOptimize). Example: Command EXEC [dba].[ColumnstoreOptimize] @Tables = N'SchemaLab.%,-TableB', @D...

Open Graph Description: Hello! I faced an issue while I was trying to exclude a table from an entire schema on the ColumnstoreOptimize procedure (just like on StatsOptimize). Example: Command EXEC [dba].[ColumnstoreOptimi...

X Description: Hello! I faced an issue while I was trying to exclude a table from an entire schema on the ColumnstoreOptimize procedure (just like on StatsOptimize). Example: Command EXEC [dba].[ColumnstoreOptimi...

Opengraph URL: https://github.com/ProdataSQL/SynapseTools/issues/3

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ColumnstoreOptimize @table parameter doesn't handle '-' values correctly","articleBody":"Hello!\n\nI faced an issue while I was trying to exclude a table from an entire schema on the ColumnstoreOptimize procedure (just like on StatsOptimize).\nExample:\n\n**Command**\n```sql\nEXEC [dba].[ColumnstoreOptimize]\n     @Tables = N'SchemaLab.%,-TableB',\n     @DensityThreshold = 0,\n     @OpenThreshold = 0,\n     @DeleteThreshold = 0,\n     @TimeLimit = NULL,\n     @Execute = N'N';\n```\n\n**Output**\n\n\u003e Date and time: 2026-01-16 12:56:10\n\u003e Server: my-lab-workspace\n\u003e Version: 10.0.29311.0\n\u003e Edition: SQL Azure\n\u003e Parameters: @Tables= 'SchemaLab.%,-TableB', @DensityThreshold = 0.00, @OpenThreshold = 0, @DeleteThreshold = 0, @Execute = N\n\u003e Version: Microsoft Azure SQL Data Warehouse - 10.0.29311.0 Sep 9 2025 04:02:32 Copyright (c) Microsoft Corporation\n\u003e Source: https://github.com/ProdataSQL/SynapseTools/tree/main/SqlPools/Maintenance\n\u003e Date and time: 2026-01-16 12:56:14\n\u003e [SchemaLab].[TableA]\n\u003e SqlCommand: ALTER INDEX ClusteredIndex_0c9429ed384a4e268945b46059844aa7 ON [SchemaLab].[TableA] REORGANIZE WITH (COMPRESS_ALL_ROW_GROUPS = ON)\n\u003e (null)\n\u003e Date and time: 2026-01-16 12:56:14\n\u003e [SchemaLab].[TableB]\n\u003e SqlCommand: ALTER INDEX ClusteredIndex_bd57f7f732c84f6b8d17da2e280697ca ON [SchemaLab].[TableB] REORGANIZE WITH (COMPRESS_ALL_ROW_GROUPS = ON)\n\u003e (null)\n\u003e Date and time: 2026-01-16 12:56:15\n\u003e [SchemaLab].[TableC]\n\u003e SqlCommand: ALTER INDEX ClusteredIndex_66416c0fa78f49eb8b2bb59d30974002 ON [SchemaLab].[TableC] REORGANIZE WITH (COMPRESS_ALL_ROW_GROUPS = ON)\n\u003e (null)\n\nAs you can see, [SchemaLab].[TableB] wasn't excluded from the table list.\n\nI tried a change by replacing the following code:\n```sql\nParamTables as (\n    select t.object_id, s.name as [Schema], t.name as [Table]\n    FROM Param2 p\n    CROSS JOIN sys.tables t \n    INNER JOIN sys.schemas s on s.schema_id = t.schema_id\n    WHERE t.type='U'  and is_external=0 \n    and ( s.name like p.[schema] AND t.name like p.[Table] )\n    GROUP BY t.object_id , s.name, t.name\n    having max(p.Op) ='+'\n)\n```\nwith:\n```sql\nParamTables AS (\n    SELECT t.object_id, s.name AS [Schema], t.name AS [Table]\n    FROM sys.tables t\n    INNER JOIN sys.schemas s ON s.schema_id = t.schema_id\n    WHERE t.type='U' AND is_external=0\n    AND EXISTS (\n        SELECT 1 FROM Param2 p\n        WHERE p.Op = '+' \n          AND ( (p.[Schema] = '%' OR s.name LIKE p.[Schema]) \n                AND (p.[Table] = '%' OR t.name LIKE p.[Table]) )\n    )\n    AND NOT EXISTS (\n        SELECT 1 FROM Param2 p\n        WHERE p.Op = '-' \n          AND ( (p.[Schema] = '%' OR s.name LIKE p.[Schema]) \n                AND (p.[Table] = '%' OR t.name LIKE p.[Table]) )\n    )\n)\n```\n\n**Output after the change:**\n\n\u003e Date and time: 2026-01-16 12:57:50\n\u003e Server: my-lab-workspace\n\u003e Version: 10.0.29311.0\n\u003e Edition: SQL Azure\n\u003e Parameters: @Tables= 'SchemaLab.%,-TableB', @DensityThreshold = 0.00, @OpenThreshold = 0, @DeleteThreshold = 0, @Execute = N\n\u003e Version: Microsoft Azure SQL Data Warehouse - 10.0.29311.0 Sep 9 2025 04:02:32 Copyright (c) Microsoft Corporation\n\u003e Source: https://github.com/ProdataSQL/SynapseTools/tree/main/SqlPools/Maintenance\n\u003e Date and time: 2026-01-16 12:57:54\n\u003e [SchemaLab].[TableA]\n\u003e SqlCommand: ALTER INDEX ClusteredIndex_0c9429ed384a4e268945b46059844aa7 ON [SchemaLab].[TableA] REORGANIZE WITH (COMPRESS_ALL_ROW_GROUPS = ON)\n\u003e (null)\n\u003e Date and time: 2026-01-16 12:57:54\n\u003e [SchemaLab].[TableC]\n\u003e SqlCommand: ALTER INDEX ClusteredIndex_66416c0fa78f49eb8b2bb59d30974002 ON [SchemaLab].[TableC] REORGANIZE WITH (COMPRESS_ALL_ROW_GROUPS = ON)\n\u003e (null)\n\nIt seems to work, but I would like a feedback from you!\n\nThanks in advance!","author":{"url":"https://github.com/VlachosChris","@type":"Person","name":"VlachosChris"},"datePublished":"2026-01-16T13:04:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3/SynapseTools/issues/3"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:628b9330-5f8c-57fa-6492-61625df500bf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE3E4:13CB91:33FA3B:461313:6A627328
html-safe-noncef3ced74261d694eeda27a9be8536434daa2e1ceaa683a510f82c7728b91d27fa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0U0OjEzQ0I5MTozM0ZBM0I6NDYxMzEzOjZBNjI3MzI4IiwidmlzaXRvcl9pZCI6IjQzMjU1MDQ5OTIwMDA3NjY3NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacaadd0fccf8aff547e9fc74aab71c4d9d5a1c55366547740c50eda7a680eb63c5
hovercard-subject-tagissue:3821955396
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ProdataSQL/SynapseTools/3/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2918021045c97ae6e5f0222b6f8a11ab29d71bedc262ee1ce7f686542c471d4d/ProdataSQL/SynapseTools/issues/3
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2918021045c97ae6e5f0222b6f8a11ab29d71bedc262ee1ce7f686542c471d4d/ProdataSQL/SynapseTools/issues/3
og:image:altHello! I faced an issue while I was trying to exclude a table from an entire schema on the ColumnstoreOptimize procedure (just like on StatsOptimize). Example: Command EXEC [dba].[ColumnstoreOptimi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameVlachosChris
hostnamegithub.com
expected-hostnamegithub.com
None838e87bd0e4f5415707a930bc14e89e382dc2ea046e50ff575252eb2f2cb06a2
turbo-cache-controlno-preview
go-importgithub.com/ProdataSQL/SynapseTools git https://github.com/ProdataSQL/SynapseTools.git
octolytics-dimension-user_id24268746
octolytics-dimension-user_loginProdataSQL
octolytics-dimension-repository_id363639398
octolytics-dimension-repository_nwoProdataSQL/SynapseTools
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id363639398
octolytics-dimension-repository_network_root_nwoProdataSQL/SynapseTools
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef0081192f88523d2bf4cfdf22bb3e138affc4cd1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ProdataSQL/SynapseTools/issues/3#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FProdataSQL%2FSynapseTools%2Fissues%2F3
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FProdataSQL%2FSynapseTools%2Fissues%2F3
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ProdataSQL%2FSynapseTools
Reloadhttps://github.com/ProdataSQL/SynapseTools/issues/3
Reloadhttps://github.com/ProdataSQL/SynapseTools/issues/3
Reloadhttps://github.com/ProdataSQL/SynapseTools/issues/3
Please reload this pagehttps://github.com/ProdataSQL/SynapseTools/issues/3
ProdataSQL https://github.com/ProdataSQL
SynapseToolshttps://github.com/ProdataSQL/SynapseTools
Notifications https://github.com/login?return_to=%2FProdataSQL%2FSynapseTools
Fork 5 https://github.com/login?return_to=%2FProdataSQL%2FSynapseTools
Star 11 https://github.com/login?return_to=%2FProdataSQL%2FSynapseTools
Code https://github.com/ProdataSQL/SynapseTools
Issues 3 https://github.com/ProdataSQL/SynapseTools/issues
Pull requests 0 https://github.com/ProdataSQL/SynapseTools/pulls
Actions https://github.com/ProdataSQL/SynapseTools/actions
Projects https://github.com/ProdataSQL/SynapseTools/projects
Security and quality 0 https://github.com/ProdataSQL/SynapseTools/security
Insights https://github.com/ProdataSQL/SynapseTools/pulse
Code https://github.com/ProdataSQL/SynapseTools
Issues https://github.com/ProdataSQL/SynapseTools/issues
Pull requests https://github.com/ProdataSQL/SynapseTools/pulls
Actions https://github.com/ProdataSQL/SynapseTools/actions
Projects https://github.com/ProdataSQL/SynapseTools/projects
Security and quality https://github.com/ProdataSQL/SynapseTools/security
Insights https://github.com/ProdataSQL/SynapseTools/pulse
ColumnstoreOptimize @table parameter doesn't handle '-' values correctlyhttps://github.com/ProdataSQL/SynapseTools/issues/3#top
https://github.com/VlachosChris
VlachosChrishttps://github.com/VlachosChris
on Jan 16, 2026https://github.com/ProdataSQL/SynapseTools/issues/3#issue-3821955396
@tableshttps://github.com/tables
@openthresholdhttps://github.com/openthreshold
@executehttps://github.com/execute
https://github.com/ProdataSQL/SynapseTools/tree/main/SqlPools/Maintenancehttps://github.com/ProdataSQL/SynapseTools/tree/main/SqlPools/Maintenance
@tableshttps://github.com/tables
@openthresholdhttps://github.com/openthreshold
@executehttps://github.com/execute
https://github.com/ProdataSQL/SynapseTools/tree/main/SqlPools/Maintenancehttps://github.com/ProdataSQL/SynapseTools/tree/main/SqlPools/Maintenance
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.