Skip to Content
24x7 Support
Email: mail@example.com
Call Us +(21) 1234 5678

    • Home
    • MSSQL
      • SQL On Linux
      • T-SQL Scripts
    • Sybase ASE
      • Sybase Scripts
    • Sybase Replication
    • Sybase IQ
    • Linux
    • Search for:

    Tag Archives: diskadmin

    1. Home  - 
    2. Posts tagged "diskadmin"
    3 Oct, 2022
    T-SQL script to get list of logins having Sysadmin permission 0 (0)
    MSSQL, T-SQL Scripts bulkadmin, dbcreator, diskadmin, processadmin, securityadmin, setupadmin, SQL server, sysadmin, TSQL

    Below query can be used to check Sysadmin Server role in SQL Server.

    select @@servername as Server,sp.name as LoginName,
    type_desc as LoginType
    from sys.server_principals sp
    inner join sys.syslogins sl
    on sp.sid=sl.sid
    where Sl.sysadmin=1

    Sample Output:

    … Read the rest
    29 Sep, 2022
    SQL Server: T-SQL script to get list of logins with server roles 0 (0)
    MSSQL, T-SQL Scripts bulkadmin, dbcreator, diskadmin, processadmin, securityadmin, serveradmin, setupadmin, SQL Server role, sysadmin

    Below query can be used to get SQL Server logins with server role in SQL Server.

    SELECT @@servername as Server, sp.name Login_Name
    ,Account_Type = CASE sp.type_desc
    WHEN 'Windows_Group'
    THEN 'Windows Group'
    WHEN 'WINDOWS_LOGIN'
    THEN 'Windows Login'
    ELSE 'SQL Login'
    END
    … Read the rest
    23 Sep, 2022
    T-SQL query to get list of logins with bulkadmin role in SQL Server 0 (0)
    MSSQL, T-SQL Scripts bulkadmin, dbcreator, diskadmin, processadmin, securityadmin, ServerRole, setupadmin, SQL server, sysadmin, TSQL

    Below query can be used to check bulkadmin server role in SQL Server.

    select @@servername as Server,sp.name as LoginName,
    type_desc as LoginType
    from sys.server_principals sp
    inner join sys.syslogins sl
    on sp.sid=sl.sid
    where Sl.bulkadmin=1

    Sample Output:

    … Read the rest
    Recent Posts
    • SQL Server: T-SQL Script to find object level permission of specific table
    • SQL Server: T-SQL Script to find object level permission of user database
    • T-SQL Script to get user with DB OWNER role in SQL Server
    • T-SQL script to list all database user access in SQL Server
    • T-SQL script to find active processes in SQL Server

    Pages

    • About Me
    • Contact
    • Disclaimer
    • Privacy Policy

    Categories

    • Linux (8)
    • MSSQL (75)
      • SQL On Linux (15)
      • T-SQL Scripts (19)
    • Sybase ASE (26)
      • Sybase Scripts (1)
    • Sybase IQ (3)
    • Sybase Replication (27)
    • Uncategorized (1)

    Archives

    Copyright © 2025 | Powered by Neom