Collection Contents Index Open Clients, Open Servers, and TDS Configuring Open Servers with DSEDIT pdf/chap31.pdf

User's Guide
   PART 5. The Adaptive Server Family
     CHAPTER 31. Adaptive Server Anywhere as an Open Server       

Setting up Adaptive Server Anywhere as an Open Server


This section describes how to set up an Adaptive Server Anywhere server to receive connections from Open Client applications.

Top of page  Comparison with SQL Anywhere Version 5

SQL Anywhere Version 5 provided support for Open Client applications using the separate Open Server Gateway executable. This executable enabled SQL Anywhere to appear as an Open Server to Open Client applications.

There is no Open Server Gateway in Adaptive Server Anywhere Version 6. Instead, the Adaptive Server Anywhere database server can be set up to act as an Open Server itself. This change simplifies setup, improves performance, and cuts down dramatically on the memory and disk resources required to provide Open Client access to your databases.

Top of page  System requirements

There are separate requirements at the client and server for using Adaptive Server Anywhere as an Open Server.

Server-side requirements 

At the server side, in order to use Adaptive Server Anywhere as an Open Server, you must have the following:

Client-side requirements 

In order to use Sybase client applications to connect to an Open Server, including Adaptive Server Anywhere, you need the following:

Top of page  Starting the database server as an Open Server

If you wish to use Adaptive Server Anywhere as an Open Server, you must ensure that it is started using the TCP/IP protocol. By default, all available communications protocols are started by the server, but you can limit the protocols started by listing them explicitly on the command line. For example, the following command lines are both valid:

dbsrv6 -x tcpip,ipx asademo.db
dbsrv6 -x tcpip -n myserver asademo.db

The first command line uses both TCP/IP and IPX protocols, of which TCP/IP is available for use by Open Client applications. The second line uses only TCP/IP.

You can use the personal database server as an Open Server for communications on the same machine, because it supports the TCP/IP protocol.

The server can serve other applications through the TCP/IP protocol or other protocols using the Adaptive Server Anywhere- specific application protocol at the same time as serving Open Client applications over TDS.

Port numbers 

Every application using TCP/IP on a machine uses a distinct TCP/IP port, so that network packets end up at the right application. The default port for Adaptive Server Anywhere is port 2638. It is recommended that you use the default port number, as Adaptive Server Anywhere has been granted that port number by the Internet Assigned Numbers Authority (IANA). If you wish to use a different port number, you can specify which one using the ServerPort network option:

dbsrv6 -x tcpip{ServerPort=2629} -n myserver asademo.db

Open Client settings 

To connect to this server, the interfaces file at the client machine must contain an entry specifying the machine name on which the database server is running, and the TCP/IP port it uses.

For Info     For details on setting up the client machine, see Configuring Open Servers with DSEDIT.

Top of page  Configuring your database for use with Open Client

Your database must be initialized or upgraded to Adaptive Server Anywhere Version 6 or at least version 5.5.03 of SQL Anywhere.

Ensure your database is compatible 

Any Adaptive Server Anywhere database that is recent enough ( 5.5.03 or above) can be accessed using the Open Server interface. However, if you are using Adaptive Server Anywhere together with Adaptive Server Enterprise, you should ensure that your database is created for maximum compatibility with Adaptive Server Enterprise.

For Info     For information on creating Adaptive Server Enterprise-compatible databases, see Creating a Transact-SQL-compatible database.

Maximum compatibility not required for Replication Server     
If you are using your database strictly for Replication Server, it is not critical to deviate from default settings. If you want to use other Open Client applications, such as OmniConnect, then it is important to use the Adaptive Server Enterprise compatible settings.

Top of page  

Collection Contents Index Open Clients, Open Servers, and TDS Configuring Open Servers with DSEDIT pdf/chap31.pdf