|
Database Connections |
Top Previous Next |
|
Before you can copy data from one database to another you need to set up a database connection for the source and target databases. This is done using the Edit Database Connections dialog by selecting the Options --> Edit Database Connections from the Menu
Edit Database Connections Dialog
To add a new database connection do the following:
Providers
Provider for connections to Access and Visual FoxPro.
Provider for connections to Oracle. Also requires the installation of the Oracle Call Interface (OCI) on the client.
Provider for connections to MySql.
Provider for connections to DB2. Also requires the installation of the DB2 client.
Provider for connections to VistaDB.
Provider for connections to Pervasive.
Provider for connections to Firebird.
Connect to one of the supported databases using an ODBC DSN
Connection strings for SQL Server are assigned in one of two formats depending on whether you want to connect using Windows or SQL Server authentication. Using Windows authentication Server=ServerName;Database=DatabaseName;Trusted_Connection=true; Using SQL Server authentication Server=ServerName;Database=DatabaseName;UID=username;PWD=password;
Data source property should specify the path to an Access MDB file Example connection string Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\data\msjet\hr.mdb
Connection strings for Oracle are assigned in one of two formats depending on whether you want to connect using Windows or Oracle authentication. The Data Source refers to Using Windows authentication Example connection string Data Source=HumanResources;Integrated Security=SSPI; Using SQL Server authentication Example connection string Data Source=HumanResources;user id=userid;password=nwind;
Server=servername;Port=3306;Database=databasename;User ID=username;Password=password;
Example connection string Server=Servername;Database=DatabaseName;uid=username;pwd=password;CurrentSchema=schemaname;
Connection requires the Visual FoxPro OleDb driver which can be downloaded from here Example connection string Provider=vfpoledb;data source=/data/vfp/northwind/northwind.dbc;
Connection requires the Visual FoxPro OleDb driver which can be downloaded from here Example connection string Data Source=/data/vistadb/northwind.vdb3;
Connection requires the MS JET OleDB driver (specifying DBASE in the Extended Properties property) Example connection string Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\GoldMine\Demo;Extended Properties=DBASE IV;
Connection requires the Pervasive .Net Data Provider Example connection string Server=ServerName;ServerDSN=DataSetName;
Connection requires the Firebird .Net Data Provider Example connection string Server=ServerName;Database=C:\firebird\nwind\nwind.FDB;User ID=sysdba;Password=masterkey;
|