Data being truncate from FOR XML PATH
Hello,I have the following TSQL below, the Branches field has been truncated out most of the field content. WITH c AS (SELECT TOP (100) PERCENT Indicator,...
View ArticleData being truncate from FOR XML PATH
Hi SSamnang, Could you please share us your table structure (CREATE TABLE …) and some sample data(INSERT INTO …) along with your expected result? So that we’ll get a right direction and make some...
View ArticleData being truncate from FOR XML PATH
Hi SSamnang,You can return the full data from the Branches field as following code:WITH c AS (SELECT TOP (100) PERCENT Indicator, CAST(BranchName AS NVARCHAR(MAX)) AS Branch,Mth FROM...
View ArticleData being truncate from FOR XML PATH
Hi SSamnang, It would be great if you could provide a minimal reproducible example: (1) DDL and sample data population, i.e. CREATE table(s) plus INSERT, T-SQL statements. (2) What you need to do, i.e....
View ArticleData being truncate from FOR XML PATH
;WITH c AS (SELECT Indicator, CAST(BranchName AS NVARCHAR(MAX)) AS Branch, Mth FROM [IAD].dbo.SQLDataSource ) SELECT c.mth AS [Month], c.Indicator, COUNT(c.branch) AS cnt, string_agg(Branch,';') WITHIN...
View ArticleData being truncate from FOR XML PATH
Hi SSamnang, Has your problem been solved? If it is solved, please mark the point that you think is correct as an answer. This can help others who encounter similar problems. Best Regards EchoMSDN...
View Article