Solved

Query analyzer text limit

Posted on 2006-06-12
8
343 Views
Last Modified: 2008-02-01
hi,

Is there a limit to displaying charecters using QA?

declare @myVar as varchar (8000)
....
print (@myVar+@myvar1+@myvar2+@myvar3+@myvar4+@myvar5)

Thanks.
0
Comment
Question by:RyanBank
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 350 total points
ID: 16886669
the maximum characters per column is 8092
0
 
LVL 19

Assisted Solution

by:folderol
folderol earned 50 total points
ID: 16886681
Go to Tools, Options, Results and see what you have for max column width.

Tom
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 16886684
in order to change this from the default value of 256  to 8092,

tools -> options->result
No of characters per column to 8092
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 7

Assisted Solution

by:LandyJ
LandyJ earned 50 total points
ID: 16886705
QA will display only about the first 1000 or so characters of a field in the result pane.  The data is still there, it just truncates it in the display.  The SQL field limit is 8092.
0
 
LVL 7

Expert Comment

by:LandyJ
ID: 16886741
Sorry, meant to say the default is to display...  (Shoulda refreshed before hitting enter)
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 16886749
LandyJ,
> QA will display only about the first 1000 or so characters of a field  in the result pane.

If you go to the Text Mode option, it will display 8000 characters
0
 

Author Comment

by:RyanBank
ID: 16900596
i also found out that is was print command that had a limit now sure what the limit is, but when i split into groups of print command everything displayed in QA.

print(@MyVar1)
print(@MyVar2)
print(@MyVar3)
print(@MyVar4)
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 50 total points
ID: 16906876
>>i also found out that is was print command that had a limit now sure what the limit is,<<
If you read aneeshattingal's original comment in response to your question, it clearly states:
"the maximum characters per column is 8092"
0

Featured Post

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question