dbTalk Databases Forums  

saving the query analyzer results to .rpt format and opening it in a xlsheet

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss saving the query analyzer results to .rpt format and opening it in a xlsheet in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
hari
 
Posts: n/a

Default saving the query analyzer results to .rpt format and opening it in a xlsheet - 11-04-2003 , 03:00 AM






hi,
I am trying to save the SQL Query Analyzer results to
a .rpt file.
and i open it in a XL sheet.
every thing is ok, but
when the numbers like ex:
ClientNo
0069007

after saving it to rpt file and if i open in XL sheet ,
the the two zeroes of the ClientNo are being supressed.
i.e. the result in XL sheet is
ClientNo
69007
i want the clientNo as it is (0069007). how to do that.
I used CAST and CONVERT functions in SQL Query analyzer,
but no use.

pls reply me.
thanx,
Hari.


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: saving the query analyzer results to .rpt format and opening it in a xlsheet - 11-04-2003 , 03:40 AM






It is more likely to be a formatting issue on the XL side not SQL Server.
Try setting the Cells to be TEXT.

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"hari" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
hi,
I am trying to save the SQL Query Analyzer results to
a .rpt file.
and i open it in a XL sheet.
every thing is ok, but
when the numbers like ex:
ClientNo
0069007

after saving it to rpt file and if i open in XL sheet ,
the the two zeroes of the ClientNo are being supressed.
i.e. the result in XL sheet is
ClientNo
69007
i want the clientNo as it is (0069007). how to do that.
I used CAST and CONVERT functions in SQL Query analyzer,
but no use.

pls reply me.
thanx,
Hari.






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.