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 |