Arne Garvander said:
Albert,
Thanks for trying, but you don't seem to understand my problem.
I have legacy data in Access. I need to copy my data to SQL server BEFORE
I
can link to SQL server. Exporting data from Access is error prone.
I understand your problem perfectly.
What I'm saying when you use the upsizing wizard if the upsizing wizard
works will link tables for you after!!!
Of course if the upsizing wizard fails, then it's ***not*** going to create
that table link for you! However keep in mind that you have two methods of
transferring data to SQL server, and I'm simply saying to try both of the
methods. Those two methods use different technologies BEFORE the table
linking occurs. Ok...got it now?
That's why I asked if your tried both methods of upsizing. One method uses
the native oleDB database connection, and the other method uses an ODBC
connection and driver. So, there is two methods of transferring data and
upsizing data to SQL server here. Sometimes choosing one method of the other
will produce better results.
This occurs *****B E F O R E ***** the table link occurs!
So, NO, I am NOT asking you to link the data. I'm asking you did you try
both methods of upsizing and was there ***ANY*** difference at all between
the two methods of transferring and upsizing data to SQL server?
There was (is) a possibility that one of the methods might of work for you
and therefore would save you some programming and having to write some code
to scrub the data before you transferred that data.
ok, so I shall assume that you tried both methods of upsizing data (you
tried oleDB methoed, and you tried the odbc method).
Now that we've determined you tried both methods, then we're gonna have to
do a little bit of hunting here and use some alternate methods to fix this
problem.
The NEXT thing I would look at is corrupted date data. In fact simply bring
up the access table in question in view mode and do a sort on a date column.
You can then scroll down to the very first date values. You often find 2 or
3 bad date values that are well outside the range that SQL server allows
(and in 9 out ot 10 times you can also recognize that the few date values
are completely outside of what dates are typical for your application). The
the upsizing tools crap out and are **very** sensitive to bad date values.
So now that that's the next area you should concentrate on.
So, check your date value or date ranges. In my case I avoided having to
write some data scrubbing code because I found only about five records that
were Obviously outside of a reasonable date value. I simply edited those 4
bad data values and then my transfer (upsize) to sql server worked just
fine.
So, little bit of patience and thinking on your part can result in a lot of
fruit and a lot of progress on this issue. Even if the above idea of
sorting the date collum and looking for a few bad records does not help,
that's the first area I would concentrate on in terms of some scrubbing code
to allow the transfer.
The other area is to look at if your using a a packed decimal field in
access....