Skip to Content

Technie

    Technie

    • Search for:

    Monthly Archives: May 2025

    1. Home  - 2025  - 
    2. May
    22 May, 2025
    How do I see list of databases?
    MS SQL, MS SQL General ms sql

    The following SQL Query provide list of databases: SELECT name, database_id, create_dateFROM sys.databases;GO See also the Microsoft documentation for View list of databases on SQL Server

    22 May, 2025
    How do I see active SQL Server connections?
    MS SQL, MS SQL General ms sql

    The following SQL Query provide list of active connections. SELECTDB_NAME(dbid) as DBName,COUNT(dbid) as NumberOfConnections,loginame as LoginNameFROMsys.sysprocessesWHEREdbid > 0GROUP BYdbid, loginame; See also the Microsoft documentation for sys.sysprocesses.

    Recent Posts

    • View Availability Group failovers
    • Find out if system when a system has rebooted
    • Import Data is greyed out in SSMS
    • How do I see list of databases?
    • How do I see active SQL Server connections?

    Recent Comments

    No comments to show.
    Copyright © 2025 Technie | Powered by Neom