January 4, 2011 at 7:53 pm
January 4, 2011 at 8:52 pm
You can double click on the column edge to resize it as seen in this screenshot.
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
January 4, 2011 at 11:05 pm
January 5, 2011 at 1:06 am
You can make use of -W switch in sqlcmd utility to remove the trailing space.
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
January 6, 2011 at 12:58 am
C3PO-594572 (1/5/2011)
SQL Server is so inferior to Oracle its unbelievable!
Funny, I was going to say the same thing about Oracle. 😉 It can't even return a result set directly to a GUI. :hehe:
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2011 at 1:03 am
C3PO-594572 (1/5/2011)
SQL Server is so inferior to Oracle its unbelievable!
Spam. Reported. (Not because of the message. Because of the signature. ;-))
January 6, 2011 at 4:48 am
C3PO-594572 (1/4/2011)
Hopefully a simple answer..How do you change the width of a displayed column when you do a query...so I can fir it on the screen.
In Oracle you would so it like this col column_name format a25
thanks
How about
select CAST(ColAWidthPossible150Chars as varchar(25)) as newcolof25chars
will truncate the rest but will display a lenght of 25 chars on screen..
and so will only mail the width of 25 chars in this case..
Wkr,
Eddy
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply