Mlsqlservertut
Mlsqlservertut
Introduction 2
Required Software 3
Legal Notice 11
Contact Us . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1
Copyright © 2004 iAnywhere Solutions, Inc.
Introduction
MobiLink enables synchronization between a central ODBC-compliant
consolidated database and many Adaptive Server Anywhere or UltraLite remote
databases. MobiLink synchronization is a component of SQL Anywhere Studio,
iAnywhere Solutions’ comprehensive package for mobile data management.
The following diagram shows the major parts of the synchronization system.
Adaptive Server
Consolidated Anywhere or UltraLite
database server MobiLink clients
Remote
network database
server
ASA
MobiLink
synchronization server
Remote
database
2
Copyright © 2004 iAnywhere Solutions, Inc.
Required Software
♦ A full SQL Anywhere Studio 9.0.1 installation.
♦ A full installation of SQL Server 2000 including the Northwind sample
database.
3
Copyright © 2004 iAnywhere Solutions, Inc.
Note:
Some examples in this tutorial are presented with Sybase Central. Sybase
Central is a database management tool that provides Adaptive Server Anywhere
database settings, properties, and utilities in a graphical user interface. It relies
heavily on the use of wizards. However, Sybase Central, Interactive SQL, and
the command line may be used interchangeably.
4
Copyright © 2004 iAnywhere Solutions, Inc.
6. Select Northwind as the default database. Remove check marks from the
following:
♦ Use ANSI quoted identifiers.
♦ Use ANSI nulls, paddings and warnings.
7. Accept the remaining default settings and click Finish.
Synchronization scripts
In this tutorial, you do not manually add synchronization scripts. When you start
the MobiLink synchronization server with special command-line options, default
scripts are automatically generated. You can use these scripts as a starting point
for generating your own scripts.
Setup for the Microsoft SQL Server consolidated database is now complete.
5
Copyright © 2004 iAnywhere Solutions, Inc.
6
Copyright © 2004 iAnywhere Solutions, Inc.
7
Copyright © 2004 iAnywhere Solutions, Inc.
♦ On the final page of the wizard, clear the Migrate the data option:
♦ Click Finish.
The migration of the Microsoft SQL Server schema is now complete.
8
Copyright © 2004 iAnywhere Solutions, Inc.
Now you have prepared the remote and consolidated databases and can begin
with the synchronization process.
Option Description
-v+ The -v option specifies what information is logged. Using -v+ sets
maximum verbose logging.
-za Turns automated scripting ON. The -za option is typically used to
generate scripts as a starting point for writing your own scripts.
Scripts are generated the first time that a remote synchronizes. If the
given script version already exists, -za has no effect.
9
Copyright © 2004 iAnywhere Solutions, Inc.
Option Description
Once you have started the MobiLink synchronization client, an output screen
appears indicating that the MobiLink synchronization succeeded. The data in the
Microsoft SQL Server tables now appears in your Adaptive Server Anywhere
database.
You can check that synchronization has succeeded by checking row values in the
remote database.
10
Copyright © 2004 iAnywhere Solutions, Inc.
Legal Notice
Copyright © 2004 iAnywhere Solutions, Inc. All rights reserved. Sybase, the
Sybase logo, iAnywhere Solutions, the iAnywhere Solutions logo, Adaptive
Server, MobiLink, and SQL Anywhere are trademarks of Sybase, Inc. or its
subsidiaries. All other trademarks are property of their respective owners.
The information, advice, recommendations, software, documentation, data,
services, logos, trademarks, artwork, text, pictures, and other materials
(collectively, “Materials”) contained in this document are owned by Sybase, Inc.
and/or its suppliers and are protected by copyright and trademark laws and
international treaties. Any such Materials may also be the subject of other
intellectual property rights of Sybase and/or its suppliers all of which rights are
reserved by Sybase and its suppliers.
Nothing in the Materials shall be construed as conferring any license in any
Sybase intellectual property or modifying any existing license agreement.
The Materials are provided “AS IS”, without warranties of any kind. SYBASE
EXPRESSLY DISCLAIMS ALL REPRESENTATIONS AND WARRANTIES
RELATING TO THE MATERIALS, INCLUDING WITHOUT LIMITATION, ANY
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NON-INFRINGEMENT. Sybase makes no warranty,
representation, or guaranty as to the content, sequence, accuracy, timeliness, or
completeness of the Materials or that the Materials may be relied upon for any
reason.
Sybase makes no warranty, representation or guaranty that the Materials will be
uninterrupted or error free or that any defects can be corrected. For purposes of
this section, ‘Sybase’ shall include Sybase, Inc., and its divisions, subsidiaries,
successors, parent companies, and their employees, partners, principals, agents
and representatives, and any third-party providers or sources of Materials.
Contact Us
iAnywhere Solutions Worldwide Headquarters One Sybase Drive, Dublin,
CA, 94568 USA
Phone 1-800-801-2069 (in US and Canada)
Fax 1-519-747-4971
World Wide Web http://www.ianywhere.com
E-mail [email protected]
11