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.
Open Microsoft Excel and create a new workbook.
In the default worksheet, add the following contents under the respective A, B, C column headers:
comment_id | order_id | order_comment |
2 | 1 | Promotional material shipped |
3 | 1 | 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.xlsx in this working directory.
Use the Microsoft Excel Driver to create an ODBC data source:
Click Start » Programs » SQL Anywhere 12 » Administration Tools » ODBC Data Source Administrator.
Click the User DSN tab.
Click Add.
Click Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb).
Click Finish.
In the Data Source Name field, type excel_datasource.
Click Select Workbook and browse to c:\MLobjexcel\order_central.xlsx, the file containing your worksheet.
Clear the Read Only option.
Click OK on all open ODBC Data Source Administrator windows.
Proceed to Lesson 2: Setting up your MobiLink consolidated database.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |