Additions to dbcc complete_xact  Changes to stored procedures

Chapter 12: Changes to Global Variables, Commands, and Stored Procedures

Changes to create procedure (SQLJ)

Earlier versions of Adaptive Server did not allow you to define a default value for a SQLJ procedure parameter. With Adaptive Server 12.5.2, you can define a default value so that you can execute the SQLJ procedure without providing a parameter value.

This new capability of create procedure (SQLJ) mimics the existing behavior of create procedure.

Syntax

create procedure [owner.]sql_procedure_name
      ( [ [ in | out | inout ] sql_parameter_name
            sql_datatype [( length )] | (precision[, scale]) ]
            [=default]
      [ , [ in | out | inout ] sql_parameter_name
            sql_datatype [( length )] | (precision[, scale]) ] 
             [=default] ... ] )
...

New option

default

Examples





Copyright © 2004. Sybase Inc. All rights reserved. Changes to stored procedures

View this book as PDF