In this lesson, you create an Excel worksheet and use the Microsoft Excel Driver to define an ODBC data source. The Excel worksheet stores product information.
Create an Excel worksheet with the following contents:
order_id | comment_id | order_comment |
---|---|---|
1 | 2 | Promotional material shipped |
1 | 3 | More information about material required |
Change the default worksheet name Sheet1 to order_sheet.
Double-click the Sheet1 tab.
Type order_sheet.
Save the Excel workbook.
This tutorial assumes c:\MLobjexcel as the working directory for server-side components. Save the workbook as order_central.xls in this working directory.
Use the Microsoft Excel Driver to create an ODBC data source:
Click Start » Programs » SQL Anywhere 11 » ODBC Administrator.
Click the User DSN tab.
Click Add.
Click Microsoft Excel Driver (*.xls).
Click Finish.
In the Data Source Name field, type excel_datasource.
Click Select Workbook and browse to c:\MLobjexcel\order_central.xls (the file containing your worksheet).
Click OK.
Click OK.
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |