You must issue a separate CREATE SERVER statement for each remote SQL Anywhere database you intend to access. For example, if a SQL Anywhere server named TestSA is running on the computer Banana and owns three databases (db1, db2, db3), you would set up the remote servers similar to this:
CREATE SERVER TestSAdb1 CLASS 'SAODBC' USING 'DRIVER=SQL Anywhere 16;HOST=Banana;Server=TestSA;DBN=db1'; CREATE SERVER TestSAdb2 CLASS 'SAODBC' USING 'DRIVER=SQL Anywhere 16;HOST=Banana;Server=TestSA;DBN=db2'; CREATE SERVER TestSAdb3 CLASS 'SAODBC' USING 'DRIVER=SQL Anywhere 16;HOST=Banana;Server=TestSA;DBN=db3'; |
If you do not specify a database name, the remote connection uses the remote SQL Anywhere server default database.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |