• Skip to primary navigation
  • Skip to content
  • Skip to footer
Highly Distinguish IT solution & education
  • About
  • Tags
  • Sitemap
    Treasure Bowl for SQL, helpful for your daily database jobs

    Treasure Bowl for SQL, helpful for your daily database jobs

    less than 1 minute read

    On this page

    • SQL Server
      • To check permissions of database objects
      • To show sql source of a stored procedure

    Don’t be greedy. Half of something is better than all nothing.

    SQL Server

    To check permissions of database objects

    sp_helprotect ‘dbo.spname’
    

    To show sql source of a stored procedure

    sp_helptext ‘dbo.spname’
    

    –HTH–

    Updated: January 31, 2023

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    You may also enjoy

    5 minute read

    3 minute read

    那个从没跑过一次的 CI 自动化构造脚本写的检查任务,给了我们一个假的绿色对勾

    3 minute read

    鸟儿在天空飞过时,是不会在乎地面上的栅栏的

    The CI Check That Never Ran Once Gave Us a Fake Green Checkmark

    14 minute read

    “The first principle is that you must not fool yourself — and you are the easiest person to fool.” — Richard Feynman

    • Follow:
    • Feed
    © 2026 Highly Distinguish. Powered by Jekyll & Minimal Mistakes.