Database
  Home arrow Database arrow Page 6 - 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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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 1
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 12
    2005-02-14

    Table of Contents:
  • Creating Database Projects with SQL Anywhere Studio, Part 1
  • Installation
  • Installed Elements
  • Sybase Central
  • Database Objects
  • Interactive SQL

  • 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 1 - Interactive SQL


    (Page 6 of 6 )

    In this section, another important tool, the Interactive SQL will be explored. SQL Queries, stored procedures, etc. can be interactively run using this tool. Examples of creating and running queries and stored procedures will be shown. Clicking the shortcut, Interactive SQL brings up the earlier shown "Connect" dialogue, wherein you enter the authentication information.

    Once the authentication is verified, the SQL designer window opens up with its own menu bar, a tool bar, a SQL pane, and a Results pane. The SQL, Data,Tools, and Help menu are used for various database connected activties. These can be seen in this next picture.

    The important menu items are shown in the next picture. Some of them may be available from the tool bar as well. From the tools menu it is possible to look at the tables, stored procedures, indices, etc. In the SQL Statements pane, the queries/procedures will be coded and they can be executed by hitting the "run" button. The results of executing the queries are shown in the Results pane.

    The Lookup Table functions very much like an object browser, and the column names can be obtained before coding the queries. The Lookup Table dialogue shows all the tables. This can be drilled down further for the columns and other items.

    Here is an example that illustrates running a simple query. The query is typed into the SQL Statements pane and, after executing the query, the results are shown in the results pane.

    Further filtering of the query yields Customers from "California" as shown here.

    Query errors are shown with the error information and line at which error occured.

    Error is removed and the query is executed again.

    Stored procedures are are also coded and executed similarly. The next screen shows a stored procedure 'test' being coded and executed.

    This creates a stored procedure object with the same name in the Sybase Central administrative pane as shown here and in the following the result of executing this stored procedure.


    Concluding Remarks

    Adaptive Server Anywhere download and installation is easy and fast. Database management is easily accomplished in the Sybase Central management console. This server appears to be superior to MSDE --which has approximately the same database size capacity, does not have a visual interface for database management, and is limited to Windows only platform.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    DATABASE ARTICLES

    - Building Applications with Anonymous Types
    - A Closer Look at Anonymous Types
    - Programming with Anonymous Types
    - Converting Your Excel Worksheet into a Worki...
    - Excel Reference
    - 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





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek