Access 2000 to SQL Server 2000 using Import/Export Wizard or DTS

Access 2000 to SQL Server 2000 using Import/Export Wizard or DTS

Post by Jonathan Rober » Tue, 30 Oct 2001 05:58:29



I have been trying to migrate my company's Access 2000 database to SQL
server while maintaining the Access front-end.

When trying to import the current tables, I get an error.  The error
is due to the date fields.  They are date/time in Access 2000.  I have
tried importing them as either datetime or smalldatetime.  No luck.

They will import as text, but then I loose all sorting functionality
on the date fields.

I have scoured the Internet, all Microsoft Access public newsgroups,
and checked on IRC.  No one seems to have had this problem before.

What am I doing wrong?

Thanks,

Jonathan Roberts
Advantage Innovation

 
 
 

Access 2000 to SQL Server 2000 using Import/Export Wizard or DTS

Post by BP Margoli » Tue, 30 Oct 2001 08:40:36


Jonathan,

The most likely reason for an Access date to fail in SQL Server is that the
date ranges supported by the two products differ. Access supports dates as
early as Jan 1, 100, while SQL Server only supports dates back to Jan 1,
1753 (and only Jan 1, 1900 if it is a smalldatetime data type).

Even if you don't think you have dates prior to Jan 1, 1753, remember that a
data entry error can easily cause a date that was supposed to be May 13,
1999 to be entered as May 13, 199.

Use Access to check for any dates prior to Jan 1, 1753.

-------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc.) which
can be cut and pasted into Query Analyzer is appreciated.


Quote:> I have been trying to migrate my company's Access 2000 database to SQL
> server while maintaining the Access front-end.

> When trying to import the current tables, I get an error.  The error
> is due to the date fields.  They are date/time in Access 2000.  I have
> tried importing them as either datetime or smalldatetime.  No luck.

> They will import as text, but then I loose all sorting functionality
> on the date fields.

> I have scoured the Internet, all Microsoft Access public newsgroups,
> and checked on IRC.  No one seems to have had this problem before.

> What am I doing wrong?

> Thanks,

> Jonathan Roberts
> Advantage Innovation


 
 
 

Access 2000 to SQL Server 2000 using Import/Export Wizard or DTS

Post by James Harge » Tue, 30 Oct 2001 10:10:32


Have you tried using the Upsizing Wizard? You may want to search the MSDN
and read some of the technical articles and white papers.

But then, this may do more than you want to. I did notice one table that
says the Date/Time data type in Access will upsize to a datetime data type
in SQL-Server.

Jim


Quote:> I have been trying to migrate my company's Access 2000 database to SQL
> server while maintaining the Access front-end.

> When trying to import the current tables, I get an error.  The error
> is due to the date fields.  They are date/time in Access 2000.  I have
> tried importing them as either datetime or smalldatetime.  No luck.

> They will import as text, but then I loose all sorting functionality
> on the date fields.

> I have scoured the Internet, all Microsoft Access public newsgroups,
> and checked on IRC.  No one seems to have had this problem before.

> What am I doing wrong?

> Thanks,

> Jonathan Roberts
> Advantage Innovation

 
 
 

Access 2000 to SQL Server 2000 using Import/Export Wizard or DTS

Post by Jonathan Rober » Tue, 30 Oct 2001 11:08:09


Thanks for the tip.

I found the solution.

It turns out that some of the data in the Access date/time fields were
invalid.  ie. 1/1/199, etc.  I was able to locate the errors using SSW
Upsizing Pro.

Thanks again for your feedback.
JMR


> I have been trying to migrate my company's Access 2000 database to SQL
> server while maintaining the Access front-end.

> When trying to import the current tables, I get an error.  The error
> is due to the date fields.  They are date/time in Access 2000.  I have
> tried importing them as either datetime or smalldatetime.  No luck.

> They will import as text, but then I loose all sorting functionality
> on the date fields.

> I have scoured the Internet, all Microsoft Access public newsgroups,
> and checked on IRC.  No one seems to have had this problem before.

> What am I doing wrong?

> Thanks,

> Jonathan Roberts
> Advantage Innovation

 
 
 

1. Importing text files into SQL Server 2000 Database using DTS Import/Export Wizard

   I'm having a problem with exporting data from text files(received
by e-mail) into SQL Server 2000 Database. These files
were created by dumping the data from SQL Server 7
tables. Each row of
these files has a fixed length and  no special delimeters
between the fields - only spaces.The Wizard detected the import file as a
file with delimited fields(Screen "Select file format"). The next screen of
the Wizard detected the column
delimeter as "other", but I couldn't detect the character. As
soon as put in the delimeter field spaces, it gave me the wrong
number of colums in the result SQL Server Table( = junk).
    If I defined the file as a file with fixed length, the next screen
of  the Wizard I got the fields with
offset(they were not left justified). When I copied this file into
the database, I got the table with the wrong number of fields
and rong data in them.
Can anybody tell me, what is the problem and is it really
possible to import the data this way ?

Any suggestions are appreciated.

Sergei Cher

2. Merge replication w/o snapshot

3. Access 2000 and Import/Export Wizard

4. Need a good book about "Cluste Analysis", Data Mining

5. using DTS to import Excel data into SQL Server 2000

6. using SP as a function?

7. How to import an access 2000 query into sql server 2000

8. database concurrency control on parallel arch.

9. Problems importing from Access 2000 to Sql Server 2000

10. Import / Export Question from MS SQL Server 2000 to MySQL Server

11. Importing Access 2000 data using DTS

12. SQL Server 2000: Potential Import Data Wizard BUG

13. Import wizard in Sql server 2000 break the referial integrity