First, make sure you have compacted your Access mdb file. If you
haven't done that, your 60 meg file may really be only 20 megs. Either
way, 60 megs isn't a whole lot (even for Access). I have never had much
luck with the upsizing wizard. Your best bet is to use the Data
Transfer Service (DTS) from Sql Server. To get to DTS you can go
Start/Microsoft Sql Server/Import and Export Data
Or you can go straight to Enterprize Manager, select your database,
right-click on the database name (or on any name under the database), on
the context menu select All Tasks/Import data. This will also bring up
DTS. From DTS you can import all your Access tables in one try. But if
you are having import errors, I would do one table at a time.
Hopefully, only one table has the problem. At least with DTS you will
be able to Identify the offending table(s) and should be able to get a
better error message. Usually the problem is an invalid character in a
field, like text in a data field. Access is way more forgiving than Sql
Server because it is not an Enterprise application and you don't have to
worry about propagating errors throughout your system.
Once in DTS, the data source will be an Access MDB. scroll upward until
you find Access. Then locate your mdb file in the Filename window
(works best if the Access mdb is on the same machine as sql Server).
Then click next (assuming you have selected the correct Sql Server DB to
plant your table into - if not, make sure you selected the correct Sql
Server DB from the dropdown list right above the Back button), click
next, click next - here you select the table(s) to import - click in the
check box next to the table name, click next, click finish (and cross
your fingers).
If you get an import error, you will have to go through all the records
in the offending table to identify the invalid piece of data. Use DAO
code and loop through all the fields in each record to find that guy,
usually a typo (1/1/0 instead of 1/1/01) in a data field.
Rich
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!