Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
CRW_REF.PDF
Скачиваний:
5
Добавлен:
13.02.2015
Размер:
13.99 Mб
Скачать

"The ODBC Data Source Setup dialog box is specific to the data source you selected, and contains controls and information for setting up your data source. Check the settings in this dialog box to make sure the information matches your system and database.

NOTE: The dialog box that appears may look different than the one shown here, depending on the type of data you are using. This dialog box is specific to the Access 7.0 ODBC driver. For complete information on using the dialog box that appears for your data, click the Help button.

# Make any changes that are necessary, and click OK.

$ Close the ODBC Administrator Data Sources dialog box.

How to log on to an ODBC data source

Choose the LOG ON SERVER command from the Database menu. The Log On Server dialog box appears.

2 Choose the ODBC data source appropriate for the database file you want to open and click OK when finished.

!If the data source requires a user name and password, or any other log in information, a login dialog box appears. Type in the information you usually use to access this database, and click OK.

If you did not specify a database with the ODBC data source, the Select Database dialog box appears. Use the

Drives, Directories, and Database Name controls to highlight the database file, and click OK.

"The Choose SQL Table dialog box appears. Choose a database table from the SQL Tables list and click OK to add the table to your report.

566

Seagate Crystal Reports User’s Guide

How to add an ODBC database table to a report

Choose the ADD DATABASE TO REPORT command from the Database menu. The Choose Database File dialog box appears.

2 Click the SQL Table button.

The Log On Server dialog box appears.

3 Choose the ODBC data source appropriatefor the database file you want to open, then click OK when finished.

"If the data source requires a user name and password, or any other log in information, the SQL Server Login dialog box appears.

5 Enter the required information then click OK when finished to log in.

$If the data source you selected includes a database file specification, or if you specified a database table in Step 3, skip to Step 8.

Working With Databases

567

%The Select Database dialog box appears. Use the Drives, Directories, and Database Name controls to select the database file, and click OK.

&The Choose SQL Table dialog box appears.

Choose a database table from the SQL Tables list and click OK to add the table to your report, or

Click the Log On Server button to log on to another ODBC data source.

How to log on to MS SQL Server via ODBC

NOTE: This section is intended as an example of how to log on to a Microsoft SQL Server data source from Seagate Crystal Reports. Your SQL server application or other password protected data source may require different steps. This is intended only as an example of one type of SQL database.

Verify the settings for the Microsoft SQL Server data source using ODBC Administrator. See How to check settings for an ODBC data source, Page 565.

From Seagate Crystal Reports, choose the LOG ON SERVER command from the Database menu. The Log On Server dialog box appears.

3 Choose the ODBC - CRSS data source and click OK when finished.

The ODBC - CRSS data source is automatically created during Seagate Crystal Reports setup procedure. This data source allows you to open MS SQL Server databases.

The SQL Server Login dialog box appears.

568

Seagate Crystal Reports User’s Guide

4 Type your MS SQL Server login ID and password.

5 Then, click the Options button.

The Options section of the SQL Server Login dialog box appears.

6 Verify the settings for your SQL Server.

%Verify the name of the SQL Server database you want to open, the database language you want to use, the name of the application you are using (Seagate Crystal Reports), and the name of your computer workstation. Make any changes that are necessary.

&Click OK, and the Choose SQL Table dialog box appears. Choose a SQL Server database table from the SQL Tables list and click OK to add the table to your report.

Working With Databases

569

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]