Link to home
Start Free TrialLog in
Avatar of ukerandi
ukerandiFlag for United Kingdom of Great Britain and Northern Ireland

asked on

t-sql Export to Excel

in the sql results is showing customer number is 01NOV02,02NOV02..etc, after export to the Microsoft Excel sheet ,its showing the 01-Nov-02.
I try usig Convert (varchar(50,[Customer Number])) but after export to the excel its showing date format (01-Nov-02.
) how to export to the Excel with out changing to the dae format?

Many thanks
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can export to a csv or txt file then open excel (not the file itself, just Excel), then use the Excel "File" menu to "open" the file, but BEFORE opening use the options at the bottom of the window to "import" the file.  Ensure you set that column as TEXT before allowing it to import.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>how to export to the Excel with out changing to the dae format?
when you try to import them, set the column data format as Text

User generated image
sorry, disregard comment ID: 40962103 as didn't see Ray already posted same suggestion.