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

  • SEARCH
  • Home
  • 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 9116873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:46:37+00:00 2026-06-17T04:46:37+00:00

I created a sub which reads all the sheets from an Excel .xlsx workbook

  • 0

I created a sub which reads all the sheets from an Excel .xlsx workbook into seprate DataTables in a DataSet using the Microsoft.ACE.OLEDB.12.0 data provider.

Now, I have one workbook with multiple sheets – All of which have the same column names – and what I’m trying to do is, once they are all loaded into the dataset, to merge them all into one large DataTable.

My problem is that even though all the sheets have the same columns, based upon the data in each sheet, sometimes the same columns get a Double Data Type and other times they get a String Data Type in the different tables of the DataSet, so, the Merge function is giving me an error.

How can I fix this? Is there a way to set the Column datatypes ahead of time to all be string or is there a way to ignore column-type while merging or is there a better way to solve this altogether?

Thanks.

  • 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-06-17T04:46:38+00:00Added an answer on June 17, 2026 at 4:46 am

    I have worked with this before.. I’m trying to go mostly from memory. There is a registry entry called TypeGuessRows that you can set. This will disable guessing the type for Excel.

    Additionally, try adding the IMEX argument in your ACE connection string.

    Other side note: This is probably a duplicate question.

    Edit:
    From Google, the registry location: http://support.sas.com/kb/31/765.html

    Another SO Helpful post: Reading Excel InterMixed DataType Without Modifying Registry Key

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

Sidebar

Related Questions

I created a SharePoint sub-site, and accidently deleted all permissions groups except for the
I created a form in Excel 2003 using a tutorial online but I had
I have created a sub-domain forum.new4u.com for the site new4u.com . Actually the forum
The main activity includes some variables with set values. I created a sub-activity with
I created a custom menu called sub-top-nav and now I'd like to override the
I was already running a sub-website under following path http://example.com/sub-site/ Now, I have created
I want to create sub-domains using PHP on the fly. Suppose a user registers
This is a followup to: MySQL - Is it possible to get all sub-items
I'd like to know if it is possible to store resources data into sub-bundles
I am trying to create a sub listview page separate from the typical caged

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.