Hello! I have a SQL select script to get the ID and description (along with a few more fields). If I run the script in Query view of the table in SQL Server Enterprise Manager, I get the description fine. But if I run the same script in SQL Query Analyzer, the description field gets truncated.
I have to run this in a DTS package to export to a .txt file. But my resulting text file also gives me a truncated description.
My SQL looks like this:
SELECT ID, CONVERT(nvarchar(2000), REPLACE(REPLACE(REPLACE(CONVERT(nvarchar(2000), DESCRIPTION), CHAR(13) + CHAR(10), ''), CHAR(13), ''), CHAR(10), '')) AS DESCRIPTION
FROM table1
Please advise. Thanks!
I have to run this in a DTS package to export to a .txt file. But my resulting text file also gives me a truncated description.
My SQL looks like this:
SELECT ID, CONVERT(nvarchar(2000), REPLACE(REPLACE(REPLACE(CONVERT(nvarchar(2000), DESCRIPTION), CHAR(13) + CHAR(10), ''), CHAR(13), ''), CHAR(10), '')) AS DESCRIPTION
FROM table1
Please advise. Thanks!