Connect using a data source

You can save sets of connection parameters in a data source. All SQL Anywhere interfaces, except Sybase Open Client and jConnect, can use data sources.

 To connect using a data source (Sybase Central or Interactive SQL)
  1. Start Sybase Central or Interactive SQL.

    If the Connect window does not appear:

    • In Sybase Central, choose Connections » Connect With SQL Anywhere 12.

    • In Interactive SQL, choose SQL » Connect.

      Click Change Database Type, and then choose SQL Anywhere.

  2. From the Authentication dropdown list, choose Database.

  3. In the User ID field, type a user name.

  4. In the Password field, type a password for the database.

  5. From the Action dropdown list, choose Connect Using An ODBC Data Source.

  6. Do one of the following:

    • Click ODBC Data Source Name and enter the DataSourceName (DSN) connection parameter that references a data source in the Windows registry. Click Browse to view a list of data sources.

    • Click ODBC Data Source File and enter the FileDataSourceName (FILEDSN) connection parameter that references a data source held in a file. Click Browse to view a list of files.

  7. Click Connect.

 To connect using a data source with a connection string (Sybase Central or Interactive SQL
  1. Start Sybase Central or Interactive SQL.

    If the Connect window does not appear:

    • In Sybase Central, choose Connections » Connect With SQL Anywhere 12.

    • In Interactive SQL, choose SQL » Connect.

      Click Change Database Type, and then choose SQL Anywhere.

  2. From the Authentication dropdown list, choose Database.

  3. In the User ID field, type a user name.

  4. In the Password field, type a password for the database.

  5. From the Action dropdown list, choose Connect With A Connection String.

  6. In the Parameters field, type connection parameters in a semicolon delimited list of parameter=value pairs. For example:

    DSN=SQL Anywhere 12 Demo";Server=SampleServer
  7. Click Connect.

 See also