Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

How can we create Large string concatenation in query?

Asked by Anna Ball Jul 12, 2021 233 views 1 answer
Share

About this question

I am trying to concatenates strings in T-SQL like 'This is a test ' + CHAR(13) + CHAR(10) + ' string'When the string is long (I do not know the limit), I get an error: Some part of your SQL statement is nested too deeply. Rewrite the query or break it up into smaller queries. How can I work around this? How is the SQL statement "nested"? Should I switch to 0x???? notation if the string length is exceeding some value? without getting a satisfactory answer. https://www.janbasktraining.com/community/sql-server/how-can-we-create-large-string-concatenation-in-query

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.