In this lesson, you set up a SQL Anywhere consolidated database by creating it and defining an ODBC data source.
Prérequis
There are no prerequisites for this task.
Click Start » Programs » SQL Anywhere 16 » Administration Tools » Sybase Central.
Click Tools » SQL Anywhere 16 » Create Database.
Click Next.
Leave the default of Create a database on this computer, and click Next.
In the Save the main database file to the following file field, type c:\MLintro\MLconsolidated.db. Click Next. If the directory does not exist, you are asked to create it. Click Yes.
Follow the remaining instructions in the Create Database Wizard and accept the default values. If prompted to specify a user ID and password for the DBA user, enter DBA and sql, respectively.
On the Connect To The Database page, check the Stop database after last disconnect option.
Click Finish.
The MLconsolidated database is created.
In the Creating Database window, click Close if the window did not close automatically.
Click Connections » Disconnect to stop the personal database server.
Click Tools » SQL Anywhere 16 » Open ODBC Administrator.
Click the User DSN tab, and click Add.
In the Create New Data Source window, click SQL Anywhere 16, and click Finish.
Perform the following tasks in the ODBC Configuration For SQL Anywhere window:
Click the ODBC tab.
In the Data source name field, type mlintro_consdb.
Click the Login tab.
In the Authentication dropdown list, leave the default of Database to connect using your user ID and password.
In the User ID field, type DBA.
In the Password field, type sql.
In the Action dropdown list, leave the default of Start and connect to a database on this computer.
In the Database file field, type c:\MLintro\MLconsolidated.db.
In the Server name field, type MLconsolidated.
In the Start line field type dbsrv16.
Click the ODBC tab and click the Test Connection button to verify that the connection is successful. Click OK.
Click OK and then click OK again to close the ODBC Data Source Administrator window.
Click Connections » Connect with SQL Anywhere 16.
In the Action dropdown list, select Connect with an ODBC data source.
In the ODBC Data Source Name field, type mlintro_consdb.
Click Connect.
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |