473,385 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Excel Inserts Null Values in DTS package

Hello all,
I have DTS package that is importing data from multiple large Excel
files from same directory
into 1 database table. The structures are same and sizes of the .xls
files are good.
The problems come after all files are successfully imported.
The problem:
All contents are formatted as General.
I have 2 types of values in same column
First scenario:
1 cell :899990
2 cell :899990AB

When I import it to database
1 cell is imported as 899990
2 cell is imported as NULL

Second scenario:
1 cell :899990AB
2 cell :899990
When I import it to database
1 cell is imported as 899990AB
2 cell is imported as NULL

I understood that If the first cell is number Excel assumes that all
others are numbers as well and vice versa.
We wrote macro that would go to each cell add empty space and format it

as text and does it for each file on the given directory. It worked
fine, but
for 23 files, 599999 lines each it took 10 days for this macro to run
and I need it to be done at least for 2 days.
I tried to add Extended property in Excel Connection to Disconnected
edit
IMEX=1 it works only for the first file, and others are still having
the problems

Is there any other way to fix this problem.
Thank you in advance

Sep 14 '06 #1
0 2640

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mail2atulmehta | last post by:
Hi, I do not know if this is right place for this, but i need some help. I have a text file, whose values are seprated by a delimiter. I want to open this file in excel, ( not import it) . I have...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
3
by: Rich Ulichny | last post by:
Not sure if this is correct newsgroup but I figured I had to start somewhere. We need to build a Web based application to allow users to choose an Excel file from their hard drive (or other...
0
by: sbarrow | last post by:
I'm attempting to export data to a dynamically named excel file everyday. For the most part it all is working well other than when the DTS package runs as a package it inserts an empty row (Row 2)...
16
by: alexia.bee | last post by:
Hi all, In some weird reason, excel instance won;t die if i remove the comment from 4 lines of setting values into struct. here is a snipcode public...
0
by: tskmjk | last post by:
Hi all, I am developing an application which reads an excel file which has the following records and inserts into a table in SQL SERVER 2005 database . Data: Product ...
15
by: pakerly | last post by:
How would i do this, convert a test file to excel? Lets say my text file has fields like this: NUMBER NAME ADDRESS PHONE 11002 Test1 ...
4
by: wizardry | last post by:
hello - i've created a form that has multiple inserts. it inserts the data fine if i manually parse the data to it but when i use the form to test the inserts it errors out. it errors out at...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.