Querying Access database from Analytica 64

Revision as of 01:39, 13 November 2009 by AManandhar (talk | contribs)

Migrating Access Database to SQL Server Express 2008

Microsoft Access databases cannot be queried from Analytica 64-Bit as Microsoft has decided to deprecate its JET database engine -- which includes the Access (*.mdb), Excel (*.xls) and Text file drivers, and have refused to provide 64-bit drivers for these (see http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine#Future).

One way to get around this issue is to migrate Microsoft Access databases to Microsoft SQL Server Express. Migrated SQL Server databases can then be queried from Analytica 64 and, by selecting the right options while migrating, can still be accessed from Microsoft Access even after the migration.

This page outlines the steps to migrate an existing Access database to SQL Server.

Step 1. Installing the SQL Server Express 2008

Microsoft SQL Server Express

Microsoft SQL Server Express 2008 is a free version of Microsoft's SQL Server. SQL Server Express does have a few limitations:

  • Maximum database size of 4GB.
  • Memory utilization limited to 1GB.
  • CPU utilization limited to 1 CPU.

Please go here fore more information about SQL Server Express: http://en.wikipedia.org/wiki/SQL_Server_Express.

Installation

The web-installer for SQL Server Express can be downloaded heree: http://www.microsoft.com/web/downloads/platform.aspx

Here is a link to a video that goes through the installation of SQL Server 2008 Express: http://www.msdev.com/Directory/Description.aspx?eventId=1209

Pointer: Please check Management Studio Express while installing the SQL Server Express 2008. Management Studio Express lets you easily access, configure and manage SQL Server Express and SQL Server Databases. Please visit the following link to learn more about SQL Server Management Studio on MSDN: http://msdn.microsoft.com/en-us/library/ms174173.aspx.

Step 2. Installing the SSMA(SQL Server Migration Assistant) for Microsoft Access Databases

SSMA for Access

SSMA or SQL Server Migration Assistant is a tool that helps to migrate Microsoft Access database to SQL Server. More information on the SSMA tool can be found here: http://www.microsoft.com/sqlserver/2005/en/us/migration-access.aspx.

Installing SSMA for Access

Here is a link to the SSMA for Access installer: http://www.microsoft.com/downloads/details.aspx?FamilyID=133b59c2-c89c-4641-bebb-6d04476ec1ba&DisplayLang=en

Please look at the following video that goes over the activation and installation of SSMA for Access: http://www.microsoft.com/sql/solutions/migration/access/SSMA01.wvx

Step 3. Backing up your Access database

The migration tool makes changes to you database, so please backup your database before using the migration tool.

Step 4. Migrating Access database to SQL Server Express 2008

Please look at the following video that explains all the steps of migrating an existing Access database to SQL Server: http://www.microsoft.com/sql/solutions/migration/access/SSMA02.wvx

Note: Your Server name is your computer name followed by '\sqlexpress.' (If your machine name is lumina, the Server name is lumina\sqlexpress).

Important: Remember to check Link Table to have the option of accessing your database from Microsoft Access even after the migration. See the following picture.

LinkTable.jpg

More information on the SSMA tool can be found here: http://www.microsoft.com/sqlserver/2005/en/us/migration-access-learning.aspx

Step 5. Testing the Migration

Creating a DSN

  1. Type in odbc in the Start Search (Windows Vista) or Start menu>Run dialog (Windows XP) to start the ODBC Data Source Administrator.
  2. Click on the System DSN tab.
  3. Click the Add.. button and then choose the SQL Server Driver.
  4. Type in the name for the DSN, description and the SQL server (Computer Name\sqlexpress) and then click Next.
  5. Choose the authentication method.
  6. Choose the database that you migrated your database to as your default database.
  7. Click Finish

Quering the SQL Server Database

  1. Open Analytica 64 and then connect to the DSN created above using DbQuery.
  2. Query the DSN to confirm the migration of the Access database.
Comments


You are not allowed to post comments.