| SybaseASE.info | |||||||
Principales características incorporadas a
|
|||||||
Característica |
Descripción |
| Nuevo procedimiento almacenado del sistema sp_showtext |
El procedimiento sp_showtext puede regenerar texto
de la tabla syscomments para objetos compilados como
procedimientos, triggers y vistas, de tal manera que la salida
corresponda de manera exacta a lo que el usuario escribió al crear el
objeto. La salida puede ser generada con números de líneas, y también
como un bloque contextual de texto SQL al rededor de una línea dada. La
salida puede ser generada como un script DDL independiente que
puede ser usado para volver a crear el objeto. Use sp_showtext
sin argumentos para obtener ayuda de uso. Este procedimiento podría
funcionar como una mejora de sp_helptext.
sp_showtext Usage: sp_helptext <object name> @objname - Name of compiled object local to current db. <print options> is a comma-separated string of print
option specifiers: Examples: -- Basic usage, with line #s right-justified. -- DDL script with line #s in comments. -- Show (default) context block of 5 lines starting
from line 44 -- Show context block of 10 lines starting from line
44 -- Show context block of 10 lines starting from line
102, with linenumbers |
| Cambios al procedimiento almacenado del sistema sp_helptext |
La ejecución de sp_helptext sin parámetros da
algunas guías sobre nueva funcionalidad incorporada a éste procedimiento
almacenado: sp_helptext Usage: sp_helptext [ '@objname' [, @grouping_num] [, ... ] ] -- Generate text for a given procedure in a group, use
either one of: -- To generate formatted SQL, use 'showsql' in @printopts,
as: Usage: sp_helptext <object name> @objname - Name of compiled object local to current db. <print options> is a comma-separated string of print
option specifiers: Examples: -- Basic usage, with line #s right-justified. -- DDL script with line #s in comments. -- Show (default) context block of 5 lines starting
from line 44 -- Show context block of 10 lines starting from line
44 -- Show context block of 10 lines starting from line
102, with linenumbers |