Solved

Importing Access file to SQL Server

Posted on 2013-12-30
7
1,453 Views
Last Modified: 2014-01-06
I am trying to get data from an Access.accdb file into SQL Server Express 2012. I see that the import options for SQL Server do not allow for an .accdb type import, so I saved the database to an .MDB format.  

When I try to import to SQL Server, however, I get an error message.  See attached file.

Anyone know what the problem is or how to get around it.  What is the best way to import an Access.accdb file into SQL Server Express 2012?
2013-12-30-225434.jpg
0
Comment
Question by:WoodrowA
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 35

Assisted Solution

by:PatHartman
PatHartman earned 200 total points
ID: 39747656
I always go the other way.  Try using the upsizing wizard to transfer from Access to SQL Server.  The other option is SSMA (SQL Server Migration Assistant).  Use the bit-wise version that matches your version of Access regardless of your OS.
0
 
LVL 3

Assisted Solution

by:Detlef001
Detlef001 earned 100 total points
ID: 39747980
This happen just because as the can be a reason as the default string columns, importation, size is 50 characters.

This truncation occurs before the data goes to the database. You must set this in the first step of the Import Wizard, in the Columns section.

Can be other reasons also but yes at a moment of time please have a look at this situation also.

Thanks.
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 200 total points
ID: 39748043
I prefer SQL Server Migration Assistant, free download at Microsoft Download Center
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:WoodrowA
ID: 39748475
Thank you for responding.

I am using Access 2013.  The upsizing wizard is no longer a part of Access 2013.  The SQL Server Migration Assistant does not specifically mention Windows 8 (or 8.1 - what I have) as an Acceptable OS.  Will it work with Windows 8?
0
 
LVL 47

Assisted Solution

by:Dale Fye (Access MVP)
Dale Fye (Access MVP) earned 200 total points
ID: 39748498
I do not know the answer to that question.  If you don't get an answer to that shortly, post back and I'll see if I can get a couple of other Access experts who may have more SQL Server and possibly Windows 8 on one of their systems to answer that question.
0
 
LVL 35

Assisted Solution

by:PatHartman
PatHartman earned 200 total points
ID: 39748994
Why don't you download it and try.  You will probably have to change the default setting for your date fields when using SSMA since it defaults to a size that is incompatible with Access./
0
 

Author Closing Comment

by:WoodrowA
ID: 39761053
Thank you all
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Viewers will learn how the fundamental information of how to create a table.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question