MS SQL Server
  Home arrow MS SQL Server arrow Page 3 - Using SQL Anywhere Database with a Web Ser...
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 
Mobile Linux 
App Generation ROI 
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? 
MS SQL SERVER

Using SQL Anywhere Database with a Web Services Server
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 11
    2006-02-22

    Table of Contents:
  • Using SQL Anywhere Database with a Web Services Server
  • Creating a web services server to work with the database
  • Verifying Installation
  • Creating a Web Service

  • 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


    Using SQL Anywhere Database with a Web Services Server - Verifying Installation


    (Page 3 of 4 )

    The web services server (mysorian) hosts the web service. If the web server responds to HTTP requests, it is a sure test that it is installed properly. The verification consists of the following steps:

    1. Create a stored procedure. It does not have to be data based.

    2. Create a Web Service which calls this stored procedure.

    3. Display the web service in a browser.

    Creating a stored Procedure

    Right clicking the database invokes the Interactive SQL window where you code the stored procedure.

    The following stored procedure was coded. The return from this code is a HTML document. If the content type is not set to 'text/html', then your HTML will look screwed up. dbo_sa_set_http_header ('content-type', 'text/html') is a stored procedure only meaningful while responding to HTTP requests. If you were to test it, as it is in Interactive SQL, it would return an error.

    Create Procedure pretty2()
    Result (html_doc long varchar)
    Begin
    Call dbo_sa_set_http_header ('Content-type', 'text/html');
    Select '<p><font color="red">Welcome to Database Programming</font></p>\n';
    End
    

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


       · Web services, SOA will be buzzing for years to come. Soon there will come a time...
     

    MS SQL SERVER ARTICLES

    - Completing the Introduction to Transact-SQL
    - A Brief Introduction to Transact-SQL
    - Lookups and Blocking Bad Data
    - Field Validation Rules for Blocking Bad Data
    - Using Masks to Block Bad Data
    - Blocking Bad Data
    - Using @@ROWCOUNT and TABLE Variables for Dat...
    - How to Use Variables, IF and CASE in Databas...
    - Creating Important Aspects of Notification S...
    - Working wth Variables in Database Interactio...
    - Delving Deeper into Notification Services
    - Notification Services
    - Building a Multi-table Report with SQL 2005 ...
    - A Secure Way of Building Connection Strings
    - Transferring a Database Using the SSIS Desig...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT