CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 11/2/2007 10:19:02 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 25 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
pgrealy
Asp.Net User
Lines of text in Output Window are truncated to 256 characters11/2/2007 10:19:02 PM

0/0

Hi,
If I execute a stored procedure in VS 2005 that generates long lines of output they are truncated at 256 character maximum. Is there a way to increase this limit?
Thanks,
Pat G.

Mikhail Arkhipo
Asp.Net User
Re: Lines of text in Output Window are truncated to 256 characters11/3/2007 4:55:51 PM

0/0

Which API do you use to output strings in question?


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
pgrealy
Asp.Net User
Re: Lines of text in Output Window are truncated to 256 characters11/5/2007 6:07:35 PM

0/0

Re-reading my original post, I was not very clear about waht I am doing. While in VS 2005, I am opening our SQL 2003 server in ServerExplorer and chooisng a stored procedure from one of our databses. I then right-click and execute. We have stored procedures that read through some tables and auto-generate some lines of code. It shuold generate some asp code and vb code to cut-and-paste into asp.net forms I am developing. This works well except for some very long lines. The procedure below is a simplified demonstration of the problem:

= = = = =
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS OFF
GO
ALTER             PROC dbo.xsp_PGtest
AS

CREATE TABLE #ScriptFile
 (LineText varchar(350))

INSERT INTO #ScriptFile
 (LineText)
 SELECT CHAR(13)
  +  'Line 1:xx1xxxxxxxxx2xxxxxxxxx3xxxxxxxxx4xxxxxxxxx5'
  + 'xxxxxxxxx6xxxxxxxxx7xxxxxxxxx8xxxxxxxxx9xxxxxxxx00'
  + 'xxxxxxxxx1xxxxxxxxx2xxxxxxxxx3xxxxxxxxx4xxxxxxxxx5'
  + 'xxxxxxxxx6xxxxxxxxx7xxxxxxxxx8xxxxxxxxx9xxxxxxxx00'
  + 'xxxxxxxxx1xxxxxxxxx2xxxxxxxxx3xxxxxxxxx4xxxxxxxxx5'
  + 'xxxxxxxxx6xxxxxxxxx7xxxxxxxxx8xxxxxxxxx9xxxxxxxx00'

INSERT INTO #ScriptFile
 (LineText)
 SELECT  CHAR(13) 
  + 'Line 2:xx1xxxxxxxxx2xxxxxxxxx3xxxxxxxxx4xxxxxxxxx5'
  + 'xxxxxxxxx6xxxxxxxxx7xxxxxxxxx8xxxxxxxxx9xxxxxxxx00'
  + 'xxxxxxxxx1xxxxxxxxx2xxxxxxxxx3xxxxxxxxx4xxxxxxxxx5'
  + 'xxxxxxxxx6xxxxxxxxx7xxxxxxxxx8xxxxxxxxx9xxxxxxxx00'
  + 'xxxxxxxxx1xxxxxxxxx2xxxxxxxxx3xxxxxxxxx4xxxxxxxxx5'
  + 'xxxxxxxxx6xxxxxxxxx7xxxxxxxxx8xxxxxxxxx9xxxxxxxx00'

SELECT *
FROM #ScriptFile

GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
= = = = =
What this should do is store two lines of 300 characters each in a temporary table and then display the contents of the table to the output window. This runs ok in SQL Query Analyzer with output selected to TEXT and the Tools/Options/Results "Maximum characters per column" set to 350. However, I cannot find a similar option to increase the line size of the Output window in VS 2005.
Thanks,
Pat G.

Mikhail Arkhipo
Asp.Net User
Re: Lines of text in Output Window are truncated to 256 characters11/5/2007 8:28:06 PM

0/0

I don't think it is VS fault really. Output window simply captures what is output via Win32 OutputDebugString API (which is not limited by length). However, if application that costructs strings before calling the mentioned API has a fixed buffer for the string construction, the string will be truncated. Is string getting chopped off or simply wrapped?


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
pgrealy
Asp.Net User
Re: Lines of text in Output Window are truncated to 256 characters11/5/2007 9:14:26 PM

0/0

The string gets chopped off. If I enable line wrapping, the line wraps at the right edge of the output window but the second line still gets chopped at the same character position.

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
SAS/Graph 9.1 Reference, 2-Volume Set: Volumes 1, 2 And 3 Authors: SAS Institute, SAS Institute, Pages: 1628, Published: 2004
SAS 9.1 Companion for Windows Authors: SAS Institute SAS Publishing Staff, SAS Institute, Pages: 575, Published: 2004
Proceedings of the Winter 1993 USENIX Conference: San Diego, CA Authors: USENIX Association Winter Conference, USENIX Association, USENIX Association, Pages: 530, Published: 1993
Mastering Windows 2000 Professional Authors: Mark Minasi, Todd Phillips, Pages: 997, Published: 2000
Sas Companion for the Os/390 Environment, Version 8 Authors: SAS Institute, SAS Institute, Pages: 509, Published: 2000

Web:
Lines of text in Output Window are truncated to 256 characters ... Lines of text in Output Window are truncated to 256 characters. Last post 11-05- 2007 4:14 PM by pgrealy. 4 replies. Sort Posts: ...
BASIC-256 Command Reference Numeric constants are any numeric characters, preceded by an optional minus .... Description, Writes text to the text output window, appending a new line. ...
Output Format Options Caution: the text-output format is based on the SAS print procedure, ... variable names truncated to 8 characters, and character values no longer than 256 ...
Interacting with the SAS System under OS/2 : Overview of the SAS ... Some SAS windows, such as Log and Output, do not allow file input; ... 256 characters in the Program Editor window, the lines are truncated unless you issue ...
NEW FEATURES *Symantec ESM 6.0 supports two new agents: * Windows ... Command line interface -X output to rich text format This option is not available .... at installation are currently limited to shorter than 256 characters. ...
TextPad Release Notes The wrong font was used in the Tool Output window for DOS commands. ...... Clip Library entries longer than 256 characters were split into multiple lines. ...
Lesson 3 Labels can be up to 256 characters long and may include almost any text ... to read this data from the external file and print it to the output window. ...
Changes in SAS 9 256 characters in length for graphics output files such as GIF or PNG. ... ( which were being truncated - and in SAS 9.2 they will not be truncated). In ...
XEmacs Lisp Reference Manual: Display Normally, whenever line truncation is in effect for a particular window, ..... to control how all 256 possible character codes display on the screen. ...
SAS-L archives -- June 2004, week 3 (#130) EDU Subject: Re: Reading data of Excel with more 256 characters. Hi Steve, ... WARNING: Data too long for column "F2"; truncated to 131 characters to fit. ...




Search This Site:










calendar colors

using modified createuserwizard looping twice.

tab control with close feature?

simulate a user posting data

creating a new asp.net web project on a server.

one datagrid two or more data sources

two tables one datalist with paging

bug: searching for things in "quotes" produces "critical error"

.net security roles and management, using multiple tiers / levels

retreiving value from dropdownlist

where can i find complete documentation?

visual basic 2005 express - sql problem

datalist not returning any item

running shell commands

context menu in datagrid

weather module

problem with installing khz.scrollingannouncements module

returning from secure site to non secure site

how use one connection in all page (using asp.net)

portal backup

caching masterpages and use of ~/ in reference to masterpagefile?

make validators work only on specific butttons

need idea for my project

finding a control in the page from webusercontrol

asp.net 2.0 menu mouseover

adding images to the validators error message?

feedback module localization

how to reference a c# class dll to a asp.net vb based project

best way to storing a string for future use

when publishing a wap - "deleting existing files..." takes forever....

 
All Times Are GMT