﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 Integration Services  / String Literal in the expression exceeds the maximum allowed length of 4000 characters. / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 18:25:28 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: String Literal in the expression exceeds the maximum allowed length of 4000 characters.</title><link>http://www.sqlservercentral.com/Forums/Topic1355060-148-1.aspx</link><description>Everything the fellow reponder (PP) said :Break doen into smaller queriesWrite short expressions(maybe even shorter variable names)Parametreized stored procMight i also suggest :Have a .sql file in which you write out your command and then have your ssis execute that instead.A long winded way but will work.</description><pubDate>Thu, 13 Sep 2012 13:01:44 GMT</pubDate><dc:creator>n79799</dc:creator></item><item><title>RE: String Literal in the expression exceeds the maximum allowed length of 4000 characters.</title><link>http://www.sqlservercentral.com/Forums/Topic1355060-148-1.aspx</link><description>1) Break down into multiple queries.2) Use fewer characters.3) Call a parameterised stored proc to do the work for you.</description><pubDate>Thu, 06 Sep 2012 03:00:15 GMT</pubDate><dc:creator>Phil Parkin</dc:creator></item><item><title>String Literal in the expression exceeds the maximum allowed length of 4000 characters.</title><link>http://www.sqlservercentral.com/Forums/Topic1355060-148-1.aspx</link><description>Hi All,I need a small help. In my ssis package, huge SQL statement is constructed through expressionsProblem:SQL is exceeding more than 4000 characters.Could anyone please share the thoughts / work around to resolve the issue.Thanks in advance.</description><pubDate>Thu, 06 Sep 2012 00:51:34 GMT</pubDate><dc:creator>hamsa_apj</dc:creator></item></channel></rss>