Runtime requirements for synchronization on remote machines
Support files required on remote machine
If you do not install PowerBuilder or SQL Anywhere
on remote machines, you must copy the files listed in Table 13-1 to use MobiLink
synchronization with a PowerBuilder application. These files must
be copied to the system path on the remote machine or the directory
where you copy your PowerBuilder applications.
Required files |
Description |
---|---|
PBDPL125.DLL, PBVM125.DLL, PBDWE125.DLL, PBSHR125.DLL, PBODB125.DLL, PBODB125.INI, LIBJCC.DLL, LIBJUTILS.DLL, LIBJTML.DLL, NLWNSCK.DLL |
PowerBuilder files that you can copy |
GDIPLUS.DLL, MSVCP100.DLL, MSVCR100.DLL, MSVCP71.DLL, MSVCR71.DLL |
Microsoft files that ship with PowerBuilder. For |
DBENG11.EXE, DBMLSYNC.EXE, DBSERV11.DLL, DBTOOL11.DLL, DBODBC11.DLL, DBLIB11.DLL, DBLGEN11.DLL, DBCON11.DLL, DBCTRS11.DLL, DBICU11.DLL, DBICUDT11.DLL |
SQL Anywhere |
Registry requirements for a remote machine
If you install SQL Anywhere
on all remote machines that you use with MobiLink synchronization,
the required registry entries are assigned automatically. If you
copy SQL Anywhere and MobiLink
files to a remote machine, you must create the HKEY_CURRENT_USERSOFTWARESybaseSQL
Anywhere12.0 registry key and add a “Location” string
value that points to the parent directory of the bin32 or bin64 subdirectory
where you copied SQL Anywhere
and MobiLink files. (The code in the uf_runsync function
of the nvo_appname_sync user object
appends “in32dbmlsync.exe” to
the path that you assign to this registry value.)
Objects generated by the MobiLink Synchronization wizard also
require registry entries to define the ODBC data source for a remote SQL Anywhere connection. Table 13-2 lists the required
registry entries. You can create a REG file that installs these
registry entries.
Registry key |
Name of string value and data to assign |
---|---|
HKEY_LOCAL_MACHINESOFTWARE |
Driver = full path to DBODBC11.DLL |
HKEY_LOCAL_MACHINESOFTWARE |
SQL Anywhere |
HKEY_LOCAL_MACHINESOFTWARE |
dataSourceName = “SQL Anywhere 12.0″ |
HKEY_LOCAL_MACHINESOFTWARE |
Driver = full path to DBODBC11.DLL Userid = user name |
Using a file DSN instead
of a registry DSN
You can use a file DSN or a registry DSN for your remote database connections.
To avoid having to specify a fully qualified path, you can copy file
DSNs to a path specified by the ODBC registry key (typically c:program filescommon
filesODBCdata sources).
The following is an example of the contents of a valid file
DSN:
1 |
[ODBC]<br>DRIVER=SQL Anywhere 12.0<br>UID=dba<br>Compress=NO<br>AutoStop=YES<br>Start=dbeng11 -c 8M -zl -ti 0<br>EngineName=SalesDB_Remote<br>DBN=SalesDB_Remote<br>DatabaseFile=C:worksalesdbsalesdb_remote.db<br>DatabaseName=SalesDB_remote |
The Datasource property of the MLSync object distinguishes
a file DSN from a registry DSN using these rules:
-
If the Datasource name ends with a .dsn file
extension, it is a file DSN -
If the Datasource name begins with “
drive:
” prefix
where drive is any alphabetic character, then
it is a file DSN
DBMS versions
If you have not applied the latest EBFs to SQL Anywhere 10.0.0 or Adaptive Server
Anywhere 9, dbmlsync looks in the current directory
for file DSNs when a full path is not specified—not in
the path specified by the ODBC registry key. The registry key is
used by SQL Anywhere 10.0.1
and later to locate file DSNs when their paths are not fully qualified.