on ‎2010 Dec 02 3:21 PM
Been an analyst using SQL Anywhere for a few years and just getting into database management. Regarding writing/developing procedures/functions, is there a particuliar programming language that is used or patterned after?
Request clarification before answering.
SQL Anywhere supports two dialects of stored procedures:
The original dialect was introduced into the product in 1992 and is called WATCOM SQL. The name is derived from the name of the company "WATCOM" and name of the product at that time. See http://en.wikipedia.org/wiki/Watcom for more information about Watcom the company. In its early years, WATCOM was known for its compiler technology and in particular its WATFOR Fortran compiler which was used by Universities around the world. As such, I would presume that the experience learned creating these compilers had some effect on the design of this dialect.
The second dialect is TSQL and was added to the SQL Anywhere product in version 6 and is based on the TSQL dialect developed and used by Sybase ASE (and inherited by Microsoft SQL Server).
The WATCOM SQL dialect closely resembles the ISO/ANSI SQL/2008 standard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mark: Am I right to notice some kind of bias in favour of the first dialect in your description? If so, I would fully agree:) - And I am sure Watcom SQL seems much more familiar to those with experience in common programming languages...
I vote "Watcom SQL"... 99.9% of Foxhound is written in it, including the enire GUI.
My preference is Watcom SQL, but users that are familiar with ASE or MS SQL may be more comfortable using the TSQL dialect.
@Volker: I am a little reluctant to name others without their permission. I will say that I know of at least six staff that worked on the Watcom compilers/interpreters and (trying not to give away too much info) some of them are users on this forum. I'll leave it as an exercise to the reader to figure out who. Note: I am not one of them.
To complete the picture:
I guess your question is focused on stored functions and procedures in SQL, and that's what the answers explain.
But you can also write (or re-use) stored procedures and functions in other programming languages and create an SQL interface for them. This includes
If this is your intention, have a look at the CREATE PROCEDURE statement for external procedures.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It doesn't really matter if you prefer watcom or T-SQL because you can translate the code from watcom to T-SQL and vice versa inside the Sybase Central
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.