Title: Got a weird error msg: STRING_AGG aggregation result exceeded the limit of 8000 bytes. Use LOB types to avoid result truncation. · Issue #2 · ProdataSQL/SynapseTools · GitHub
Open Graph Title: Got a weird error msg: STRING_AGG aggregation result exceeded the limit of 8000 bytes. Use LOB types to avoid result truncation. · Issue #2 · ProdataSQL/SynapseTools
X Title: Got a weird error msg: STRING_AGG aggregation result exceeded the limit of 8000 bytes. Use LOB types to avoid result truncation. · Issue #2 · ProdataSQL/SynapseTools
Description: Awesome code, this is super helpful for a project I'm working on. One thing that came up today was an error msg being returned from vStats view "STRING_AGG aggregation result exceeded the limit of 8000 bytes. Use LOB types to avoid resul...
Open Graph Description: Awesome code, this is super helpful for a project I'm working on. One thing that came up today was an error msg being returned from vStats view "STRING_AGG aggregation result exceeded the limit of ...
X Description: Awesome code, this is super helpful for a project I'm working on. One thing that came up today was an error msg being returned from vStats view "STRING_AGG aggregation result exceeded the ...
Opengraph URL: https://github.com/ProdataSQL/SynapseTools/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Got a weird error msg: STRING_AGG aggregation result exceeded the limit of 8000 bytes. Use LOB types to avoid result truncation.","articleBody":"Awesome code, this is super helpful for a project I'm working on.\r\n\r\nOne thing that came up today was an error msg being returned from vStats view\r\n\r\n\"STRING_AGG aggregation result exceeded the limit of 8000 bytes. Use LOB types to avoid result truncation.\"\r\n\r\nLooking at the code I figured out I could toss a CAST statement in vStats view to make sure the return came back as NVARCHAR(MAX). I think this happens when there's a large number of columns in a table or the column names are rather long?\r\n\r\n`select sc.object_id, sc.stats_id, string_agg(CAST(c.name AS NVARCHAR(MAX)), ',') as stat_columns...`\r\n\r\nI think this may be causing another issue when running the stored procedure StatsOptimize as below:\r\n`exec dbo.[StatsOptimize] @Tables=null, @StatisticsModificationLevel=null, @StatisticsSample=null ,@OnlyModifiedStatistics=null,@DeleteOverlappingStats='Y', @TimeLimit=null , @Execute=null `\r\n\r\nReturns Error:\r\nArithmetic overflow error converting numeric to data type numeric.\r\n\r\nI'm testing this out now in my environment and I'll let you know by responding to this post.","author":{"url":"https://github.com/jtbrown52","@type":"Person","name":"jtbrown52"},"datePublished":"2022-03-17T16:22:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2/SynapseTools/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:47f36325-b547-56f0-3423-631773bfacd2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB4C:285D25:352906:47E5D3:6A6272D1 |
| html-safe-nonce | 8da15f76ff94e72229d7d7ca84baefd694e0bd0b42a11466df99ff733c0910d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjRDOjI4NUQyNTozNTI5MDY6NDdFNUQzOjZBNjI3MkQxIiwidmlzaXRvcl9pZCI6Ijg3Mjg1MTk5NjQyMjI0NTI0MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 03bc66398e483e17f56c11878fa3b742e5bec5125c72f2f16b28315cef876f65 |
| hovercard-subject-tag | issue:1172547938 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ProdataSQL/SynapseTools/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/55eb960d238b725bc89188feb28e374ebd32bb3d45cbb384998d5b526f327eca/ProdataSQL/SynapseTools/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/55eb960d238b725bc89188feb28e374ebd32bb3d45cbb384998d5b526f327eca/ProdataSQL/SynapseTools/issues/2 |
| og:image:alt | Awesome code, this is super helpful for a project I'm working on. One thing that came up today was an error msg being returned from vStats view "STRING_AGG aggregation result exceeded the limit of ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jtbrown52 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 838e87bd0e4f5415707a930bc14e89e382dc2ea046e50ff575252eb2f2cb06a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/ProdataSQL/SynapseTools git https://github.com/ProdataSQL/SynapseTools.git |
| octolytics-dimension-user_id | 24268746 |
| octolytics-dimension-user_login | ProdataSQL |
| octolytics-dimension-repository_id | 363639398 |
| octolytics-dimension-repository_nwo | ProdataSQL/SynapseTools |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 363639398 |
| octolytics-dimension-repository_network_root_nwo | ProdataSQL/SynapseTools |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f0081192f88523d2bf4cfdf22bb3e138affc4cd1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width