I use an interface that allows me to use only SQL commands. The database is SQL Server. Now I need to open the stored procedure and read what is inside it. What is an SQL command to open a stored procedure for reading? Thanks.
SELECT definition FROM sys.sql_modules WHERE object_id = OBJECT_ID('YourSchemaName.YourProcedureName')
sp_helptext 'dbo.myStoredProc'
SELECT OBJECT_DEFINITION(OBJECT_ID('dbo.myStoredProc'))
Note: subject to Visibility of metadata and SEE DEFINITION of the right
SELECT TEXT FROM syscomments WHERE id = (SELECT id FROM sysobjects WHERE name = '<NAME>') ORDER BY colid
Source: https://habr.com/ru/post/889036/More articles:Does CakePHP finderQuery work with SQL Server? Where would I debug this? - sql-serverIs union more efficient than switching to modern compilers? - performanceWhy are my listboxitems not debited? - c #How to iterate over all image files in a directory? - filesystemshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/889033/how-to-get-all-client-info-from-website-visitors&usg=ALkJrhjbRJN-WSrvWWhy8LgiZri3D_aovQInsert third-party JApplet into Swing GUI and pass its parameters - javaIs the same SQL query slower from an NHibernate application than SQL Studio? - sqlCheck class - should return a false or throw exception? - phpSubclass org.apache.log4j.Logger without changing% C? - javaComparison operators do not work (in erb representations) - ruby ββ| fooobar.comAll Articles