Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 802845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:39:57+00:00 2026-05-14T23:39:57+00:00

I am trying to generate a CSV file from DB Query as source one

  • 0

I am trying to generate a CSV file from DB Query as source one of my column is having datatype nvarchar(50) with values as “01050007029604301001”
After the export when the csv file is viewed using Excel the value appears as
“1.0500E18” .
How can i stop this .
Please suggest

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T23:39:57+00:00Added an answer on May 14, 2026 at 11:39 pm

    That’s Excel treating it as a number – it could be one after all. One workaround is to prefix affected fields with = in your csv file:

    "01","02","wibble"
    

    becomes

    ="01",="02","wibble"
    

    and so on. This will prevent the loss of leading zeros and display the full value with out conversion to scientific notation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to generate customized xml files from a template xml file in python.
I am trying to generate a csv file using a jsp file this its
I'm trying to dynamically generate a csv file with some cells that will contain
While trying to generate classes from a xsd, i got this error: java.lang.IllegalArgumentException: Illegal
I am trying to generate a Sandcastle help file for a website. In the
I am trying to take a rather large CSV file and insert it into
After having the unpleasant surprise that Comma Seperated Value (CSV) files are not necessarily
I'm trying to generate a Google Map based off of results from a database.
I'm trying to generate beans from an xsd by using the jaxb2-maven-plugin maven plugin,
I have a CSV file and want to generate dumps of the data for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.