Database
  Home arrow Database arrow Page 3 - Creating Database Projects with SQL Anywhe...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DATABASE

Creating Database Projects with SQL Anywhere Studio, Part 2
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 11
    2005-02-21

    Table of Contents:
  • Creating Database Projects with SQL Anywhere Studio, Part 2
  • Integrated Login
  • Importing ASA data into an Excel worksheet
  • Creating a VB application
  • An example of ADO.NET application

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating Database Projects with SQL Anywhere Studio, Part 2 - Importing ASA data into an Excel worksheet


    (Page 3 of 5 )

    Microsoft Excel is a widely used, extremely popular spreadsheet program. Financial experts love it because of its integration with other Office products, charting, underlying VBA, and number crunching power among others. Before you can connect to the database, it is necessary to prepare a File Data Source Name. In order to prepare this, open a Notepad application (albeit empty) and save it as, for example, Asa.udl. The application (Notepad) will warn you that it may be unusable if the extension is changed, but ignore this objection. Now right click on this icon,

    Creating Database Projects with SQL Anywhere Studio, Part 2

    to bring up the Data Link Dialogue. Make sure that under Providers, MS OLEDB PROVIDER FOR ODBC DRIVERS is chosen. For Use Data Source Name choice type in "ASA 9.0 Sample", use dba for User Name and sql for Password. You may test this connection.

    Creating Database Projects with SQL Anywhere Studio, Part 2

    Click open MS Excel application (Excel 2002 SP1 in this example), and in the Data menu item, click to show the drop down items. Under Import External Data pick up Import Data...

    Creating Database Projects with SQL Anywhere Studio, Part 2

    This brings up a file open dialogue and you may browse to find the Asa.udl that was created earlier (in this example it was saved in a folder called Excel; it depends on where it is saved). Highlight this and click Open.

    Creating Database Projects with SQL Anywhere Studio, Part 2

    As was saw in Part 1, this database had a number of tables. The table list from the database now pops up, where you can select the table you want to bring in to Excel.

    Creating Database Projects with SQL Anywhere Studio, Part 2

    As soon as you pick a table, you will be asked the location where it may be displayed. You can choose a location. In this screen shot, it starts from first cell (default) in the worksheet.

    Creating Database Projects with SQL Anywhere Studio, Part 2

    If you click on the Properties button in the above-imaged screen, you can access the External Data Range properties. You can choose formatting options; refresh the background; save query definitions and/or passwords; and so on.

    Creating Database Projects with SQL Anywhere Studio, Part 2

    Now the table data is nicely positioned in the Excel Worksheet. From here it can be processed within Excel as shown in the following picture, where autosort is turned on.

    Creating Database Projects with SQL Anywhere Studio, Part 2

    Creating Database Projects with SQL Anywhere Studio, Part 2

    More Database Articles
    More By Jayaram Krishnaswamy


     

    DATABASE ARTICLES

    - Database Programming in C# with MySQL : Usin...
    - Formatting Techniques for Data Access from E...
    - Data Access from Excel VBA
    - Generating a Multiple Table Crystal Report u...
    - ADO and the Command Object
    - On Wiring Up an ADO Data Control
    - Reading and Writing to Files on the Intranet
    - Using ADO Record to Create and Navigate Intr...
    - Using Data Access Pages to Access Data on a ...
    - Using ADO with the SQL Native Client
    - ADO`s Stream Object
    - Opening a Record Object Referencing an Open ...
    - Introducing Jasper (SQL Anywhere 10 Beta)
    - Creating a Database Project in VS 2005
    - Manipulating ADO Recordsets





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway