Citrix: Migrate BD MS Access to MS SQL 2000 or 2005

In this document we will see something typical, having to migrate an Access database to a SQL database, sea SQL 2000 or SQL 2005, it is typical that can happen to us if we enter a client in Demo mode and they do not have a DB server.

Access to SQL

First of all, you need to have a SQL Server installed, and create a blank DB,

Access to SQL

Okay now on the PS server that has the BD Access, We will generate a new .dsn file with the following content:
[ODBC]
DRIVER=SQL Server
UID=sa
DATABASE=NOMBRE_DE_LA_BASE_DE_DATOS
WSID=NOMBRE_DEL_SERVIDOR_CITRIX_ACTUAL
APP=DESCRIPCIÓN_DEL_ODBC
SERVER=SERVIDOR_DE_BD

Access to SQL

We open a DOS console, and to migrate the Access database to SQL we run the following command:
DSMAINT MIGRATE /SRCDSN:”ODBC_ORIGEN” /SRCUSER:citrix /SRCPWD:citrix /DSTDSN:”ODBC_DESTINO” /DSTUSER:USUARIO_DE_LA_BD /DSTPWD:PASSWORD

Access to SQL

We confirm that we wish to continue, “Yes”,

Access to SQL

We wait while the data is migrated…

Access to SQL

“Yes”,

Access to SQL

This tells us if the data has been migrated successfully, perfect.

Access to SQL

Now what you have to do is tell the PS server to use the new DSN file against the SQL DB, if we have more than one server we must create the previous DSN file on all servers and run this file. With the following command:

DSMAINT CONFIG /USER:USUARIO_DE THE BD /PWD:PASSWORD /DSN:”FICHERO_DSN_NUEVO”

Access to SQL

We check that the data source has been perfectly changed, OK,

Access to SQL

And we restart the IMA service from the Services,

www.bujarra.com – Héctor Herrero – Nh*****@bu*****.cOm – v 1.0


Recommended Posts

Author

nheobug@bujarra.com
Autor del blog Bujarra.com Cualquier necesidad que tengas, Do not hesitate to contact me, I will try to help you whenever I can, Sharing is living ;) . Enjoy documents!!!