Useful system stored procedures in SQL Server

后端 未结 12 982
醉话见心
醉话见心 2021-01-30 03:17

I recently discovered that I could use the sp_help to get a table definition and have been hooked onto it since then. Before my discovery, I had to open up the Obje

12条回答
  •  我在风中等你
    2021-01-30 04:09

    I know it's a rather old topic, but it still has a high rank in search engines.

    These are my favorite stored procedures, I hope you find them useful too. Almost all of them can be achieved with a simple command, but these stored procedures perform some checks and validation that is useful.

    [sys].[sp_revokelogin]
    [sys].[sp_password]
    [sys].[sp_MSchangeobjectowner]
    [sys].[sp_addlogin]
    [sys].[sp_addrole]
    [sys].[sp_adduser]
    [sys].[sp_denylogin]
    [sys].[sp_droplogin]
    [sys].[sp_droprole]
    [sys].[sp_droprolemember]
    [sys].[sp_dropuser]
    

提交回复
热议问题