dbTalk Databases Forums  

export to excel WITHOUT single quote in cells

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


Discuss export to excel WITHOUT single quote in cells in the microsoft.public.sqlserver.dts forum.



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

Default export to excel WITHOUT single quote in cells - 08-07-2003 , 01:30 PM






I have many DTS packages that export data to many excel
files, but in each cell there is a single quote (') before
the data in each cell which is causing errors when trying
to do calculations in excel and every field is
in "General" format in excel. How do i export data with
my DTS package to Excel and NOT have the single quote
appear in excel before the data in each cell?

Any help would be greatly appreciated.


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

Default Re: export to excel WITHOUT single quote in cells - 08-07-2003 , 03:01 PM






What I think is happening to you is this

For text valued columns excel inserts a '

I just ran a test of exporting authors to an XL file. If you let DTS create the table in XL then it will define the "zip" field as a varchar. Pump to it and you will see that the zip field entries have a ' before them. Now I know that the data in
this field is numeric so I reran the test but instead edited the CREATE TABLE statement to say integer for the zip field instead of varchar.

All the ' go away now.




--

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

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.