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:

    Category Archives: MSSQL

    1. Home  - 
    2. Archive by category "MSSQL"
    3. ( Page8 )
    11 Jun, 2021
    The database principal owns a database role and cannot be dropped. Msg 15421, Level 16 5 (2)
    MSSQL SQL Server Error 15421

    Problem Description:

    Usually we face this issue while dropping user from database which owns database roles and error code 15421 indicates issue of database role ownership which need to be modified.

    Solution:

    Run below query on database to check database … Read the rest

    28 Aug, 2020
    User, group, or role already exists in the current database (Microsoft SQL Server, Error: 15023). 0 (0)
    MSSQL SQL Server error 15023

    We were facing below error while trying to grant access to the database for specific login.

    Problem Description:

    Create failed for User (Microsoft.SqlServer.Smo)
    SQL Server Error User, group, or role already exists in the current database. (Microsoft SQL Server, Error:
    … Read the rest

    27 Aug, 2020
    Query to put all databases in read only mode in SQL server 0 (0)
    MSSQL SQL on Linux, SQL Server read only mode

    select 'alter database [' + name + '] set READ_ONLY WITH NO_WAIT
    go'
    from sys.databases where database_id4
    … Read the rest

    18 Aug, 2020
    How to install SQL agent on Linux platform 0 (0)
    MSSQL, SQL On Linux Enable SQL Server Agent on Linux, SQL on Linux

    Case1: if you are on SQL Server 2017 CU3 or lower one, you have to separately install SQL agent package.

    below is the steps to install the package

    sudo yum install mssql-server-agent
    sudo systemctl restart mssql-server

    in case, if … Read the rest

    30 Jul, 2020
    How to check if windows machine is physical or Virtual 0 (0)
    MSSQL

    Method 1:


    For windows, Click Start → Run → open cmd prompt →  run below command

    systeminfo /s %computername% | findstr /c:"Model:" /c:"Host Name" /c:"OS Name"

    Method 2:

    Click Start → Run → open cmd prompt →  run below command

     msinfo32

    Here, System … Read the rest

    Posts pagination

    1 … 7 8
    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 © 2026 | Powered by Neom