How do i view the code in stored procedure?what permission should I have for it.
Also how do I get the list of tables in the DB?
Also how do I get the list of tables in the DB?
select * from information_schema.tables where table_type = 'base table'
sp_helptext 'yourStoredProcedureName'
select * from information_schema.tables where table_type = 'base table'
sp_helptext 'yourStoredProcedureName'
SELECT OBJECT_DEFINITION (OBJECT_ID(N'sys.sp_columns')) AS [Object Definition]
Comment