Setting the Mapper database connectivity
One database server can simultaneously run several copies of the SQL Server
code. These server codes are called instances. In the simplest case it is viewed as
different database servers hosted on the same IP address. For example, production
is a possible instance name.
Setting Mapper db connectivity
-
Database is a collation of tables, views, and others.
-
Schema is a way to structure database tables, it is thought of as different
folders
.
One can have Schema_1.Table
and Schema_2.Table
. The default SQL Server schema is dbo
(Data Base Owner).
The overall structure is, DB_Server_Name\DB_Instance\DB_Name\Schema\Table
.
Default database connection preference
In addition to manually creating database and server connections through the Mapper preferences, the Mapper is pre-configured with a connection of each type through the mapper.properties file. This is useful in the context of a Mapper installation where the user can have access to a mapping database and server immediately after the install.
If the mapper.properties file exists
in the home directory of Eclipse (eclipse.home.location
,
where eclipse.exe
resides), and the database connection
given in the file does not already exist, it is added automatically.
If the database connection given in the file already exists, confirm whether to update the database connection from the file. This will happen only once when the mapper is (re)started. You can also go to
and click in the Default Configuration group. The user can then change or complement these preferences, if necessary.When the mapper.properties file is changed, the same functionality is triggered the next time the mapper is (re)started.