![db2 dbvisualizer create stored procedure db2 dbvisualizer create stored procedure](https://ww1.prweb.com/prfiles/2004/04/05/116727/graph.gif)
In the query window, enter the following statements that use the sys.sql_modules catalog view. SELECT OBJECT_DEFINITION (OBJECT_ID(N'')) Change the database name and stored procedure name to reference the database and stored procedure that you want. In the query window, enter the following statements that use the OBJECT_DEFINITION system function. USE AdventureWorks2012 ĮXEC sp_helptext N'' In the query window, enter the following statement that uses the sp_helptext system stored procedure. In Object Explorer, connect to an instance of the Database Engine. Using Transact-SQL To view the definition of a procedure in Query Editor This will display the procedure definition. In Object Explorer, connect to an instance of Database Engine and then expand that instance.Įxpand Databases, expand the database in which the procedure belongs, and then expand Programmability.Įxpand Stored Procedures, right-click the procedure and then select Script Stored Procedure as, and then select one of the following: Create To, Alter To, or Drop and Create To. To view the definition a procedure in Object Explorer
#Db2 dbvisualizer create stored procedure how to
How to View the Definition of a Stored Procedure
![db2 dbvisualizer create stored procedure db2 dbvisualizer create stored procedure](https://dataedo.com/asset/img/kb/db-tools/ibm_data_studio/sp_dev_option.png)
Samples are provided later in this article. Instead, use sys.sql_modules object catalog view. 5.14 DB2: DbVisualizer hangs when executing wrong SQL. The system stored procedure sp_helptext is not supported in Azure Synapse Analytics. In the Oracle database, there is now a stored procedure/function in the database object tree. For more information, see Metadata Visibility Configuration. The visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. These permissions are implicitly held by members of the db_owner, db_ddladmin, and db_securityadmin fixed database roles. The definition of user objects is visible to the object owner or grantees that have any one of the following permissions: ALTER, CONTROL, TAKE OWNERSHIP, or VIEW DEFINITION. System object definitions are publicly visible. To view the definition of a procedure, using: SQL Server Management Studio, Transact-SQL
![db2 dbvisualizer create stored procedure db2 dbvisualizer create stored procedure](https://docplayer.net/docs-images/108/184555419/images/114-2.jpg)
This article describes how to view the definition of procedure in Object Explorer and by using a system stored procedure, system function, and object catalog view in the Query Editor. Applies to: SQL Server (all supported versions) Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics Analytics Platform System (PDW) View the definition of a stored procedure