I need to output the contents of a text field using MS Query Analyzer. I have tried this:
select top 1 text from myTable
(where text is a text
field)
and
DECLARE @data VarChar(8000)
select top 1 @data = text from myTable
PRINT @data
The first one prints only the first 2000 or so characters and the second only prints the first 8000 characters. Is there any way to get all of the text?
Notes:
- must work with SQL Server 7