Lesson 1: Setting up the consolidated database

In this lesson, you create a consolidated database named MLconsolidated with the scripts required for synchronization using the dbinit utility. You then use the SQL Anywhere 12 driver to define an ODBC data source for the database.

 Set up the SQL Anywhere consolidated database
  1. Create a new working directory to store the consolidated database.

    This tutorial assumes c:\MLsis as the working directory.

  2. Create the SQL Anywhere consolidated database using the dbinit utility.

  3. Run the following command:

    dbinit MLconsolidated
  4. Start the consolidated database using the dbeng12 utility.

    Run the following command:

    dbeng12 MLconsolidated
  5. Click Start » Programs » SQL Anywhere 12 » Administration Tools » ODBC Data Source Administrator.

  6. Click the User DSN tab, and then click Add.

  7. In the Create New Data Source window, click SQL Anywhere 12, and then click Finish.

  8. Perform the following tasks in the ODBC Configuration For SQL Anywhere window:

    1. Click the ODBC tab.

    2. In the Data Source Name field, type sis_cons.

    3. Click the Login tab.

    4. In the User ID field, type DBA.

    5. In the Password field, type sql.

    6. From the Action dropdown list, choose Connect To A Running Database On This Computer.

    7. In the Server Name field, type MLconsolidated.

    8. Click OK.

  9. Close the ODBC data source administrator.

    Click OK on the ODBC Data Source Administrator window.

  10. Proceed to Lesson 2: Generating a database schema.

 See also