Re: Query Analyzer-Result to Text

Tech-Archive recommends: Fix windows errors by optimizing your registry



You should do the calculation first and then cast it. I thought you were
talking about character columns anyway.

--
Andrew J. Kelly SQL MVP

"HLong" <HLong@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:061E730D-C6D1-4F64-BC0B-2F105F7E3203@xxxxxxxxxxxxxxxx
Thank you. CAST() works fine for some columns but not for all, specially
calculated columns. I tried (cast(columnA .....)*cast(columnB.....)) but
it
didn't work.

"Andrew J. Kelly" wrote:

I don't know how to change the title. I never print directly. I typically
use the grid and copy and paste to Excel. You can issue a CAST() in the
select on the wide columns to make them as small as you want.

--
Andrew J. Kelly SQL MVP

"HLong" <HLong@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:338E2DC7-46DD-4E06-A0CB-BB89B8C5C343@xxxxxxxxxxxxxxxx
Hi, I am trying to print the query result directly from the query
analyzer. I
am having two probles. One - I can't find a way of changing the
<untitled>
title on the result, so I have to put it by hand. Is there a way of
changing
the title? Two - Some of the fields on the tables were created too
wide,
more than the should have been, so the result column are too wide for
the
data. Is there a way of narrowing the result columns? I would really
appreciate any help





.



Relevant Pages

  • Re: Extremely high % Disk Time .. How is this possible??
    ... Andrew J. Kelly SQL MVP ... > Slicing them into logical drives may look better but it does not increase ... I prefer to look at disk queue ... >>> Andrew J. Kelly SQL MVP ...
    (microsoft.public.sqlserver.clustering)
  • Re: disk I/O tool
    ... Andrew J. Kelly SQL MVP ... "Jay" wrote in message ... I guess he really doesn't understand SAN's very well either because SAN's are notoriously slow for writing small but frequent I/O's and direct attached drives will often outperform them hands down. ...
    (microsoft.public.sqlserver.server)
  • Re: Performance really poor if calling data from sql clients
    ... Andrew J. Kelly SQL MVP ... The TCP connection is running from the client ... On a computer running the test which is not the database hosting ...
    (microsoft.public.sqlserver.clients)
  • Re: Procedure execution problem - Clients performances
    ... Again check the parameters and plan with a trace. ... Andrew J. Kelly SQL MVP ... Dim conn As New SqlConnection ...
    (microsoft.public.sqlserver.clients)
  • Re: Performance really poor if calling data from sql clients
    ... Andrew J. Kelly SQL MVP ... The TCP connection is running from the ... Server already restarted several times (MSSQLSERVER, ...
    (microsoft.public.sqlserver.clients)