Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Dynamic Sql problem.

Author  Topic 

aex
Yak Posting Veteran

60 Posts

Posted - 2006-07-18 : 23:17:33
I have problem in building dynamic sql. Because my query string is more than 8000 characters, so when I try to execute the dynamic sql string, sql server complaints:

String or binary data would be truncated.

How to solve this problem?

Thanks in advance for any reply.

aex

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-07-18 : 23:22:52
see here http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=execute,dynamic,sql,more,than,8000


KH

Go to Top of Page

aex
Yak Posting Veteran

60 Posts

Posted - 2006-07-19 : 01:55:25
Hi khtan, really thank you for the useful thread. It helps.

aex
Go to Top of Page
   

- Advertisement -