About 15,100 results
Open links in new tab
  1. List the queries running on SQL Server - Stack Overflow

    Jun 2, 2009 · Is there a way to list the queries that are currently running on MS SQL Server (either through the Enterprise Manager or SQL) and/or who's connected? I think I've got a very long running query is ...

  2. Currently running queries in SQL Server - Stack Overflow

    May 26, 2012 · Is there a program or a sql query that I can find which SQL queries are being run on an SQL Server 2012? I think there was a tool in earlier version of SQL Server where the actual query content gets displayed or the stored procedure name? SQL profiler that is, isn't it? :) I use the below query. ,STATUS = ses.STATUS.

  3. Start, stop, pause, resume, and restart SQL Server services

    Jul 29, 2024 · This article describes how to start, stop, pause, resume, or restart the SQL Server Database Engine, the SQL Server Agent, or the SQL Server Browser service on Windows by using SQL Server Configuration Manager, SQL Server Management Studio (SSMS), net commands from a command prompt, Transact-SQL, or PowerShell.

  4. SQL Server - Find Currently Running Query - TecAdmin

    6 days ago · Identifying running queries in SQL Server is a vital skill for any database professional. By leveraging tools like SSMS, querying system views, or even using third-party solutions, you can gain valuable insights into your database’s performance and …

  5. Find Current Running SQL Statement in SQL Server

    Aug 14, 2020 · In order to query the requests currently in-state on a SQL Server you’ll need to access the sys.dm_exec_requests Dynamic Management View. For the context of this article we are interested in just a small subset of the columns exposed by this DMV: sql_handle – the handle (a.k.a. unique identifier) of the SQL command text for the request.

  6. SQL SERVERLong Running Queries with Execution Plan

    Dec 7, 2020 · One of the most frequently asked questions I get during my Comprehensive Database Performance Health Check is that if I have a simple script that will list all the long running queries in the database with the execution plan. Well, the answer is yes. Let us look at the script today. Well, the script is self-explaining and simple.

  7. How To Check Long Running Queries in SQL Server?

    Identifying and troubleshooting long running queries is essential to ensure SQL Server operates efficiently. If you’re wondering how to check long running queries in SQL Server, this process can help you optimize performance and prevent application slowness.

  8. SQL SERVER – Get Last Running Query Based on SPID

    Jul 19, 2009 · We often need to find the last running query or based on SPID need to know which query was executed. SPID is returns sessions ID of the current user process. The acronym SPID comes from the name of its earlier version, Server Process ID. To know which sessions are running currently, run the following command:

  9. SQL Server Long Running Queries - stevestedman.com

    Jan 27, 2025 · One of the easiest ways to monitor SQL Server long running queries is by using the Long Running Query Report in Database Health Monitor. This report identifies queries that take longer than a specified threshold, allowing you to quickly spot problematic queries and investigate further.

  10. Get Current Running Queries in SQL Server with fn_get_sql

    Aug 14, 2020 · Using any of these methods allows you to see which connections are currently active as well part of the statement that is currently running, but they don’t all show the entire contents of the statement. Another option is to use the “::fn_get_sql” statement. This was introduced with SQL Server 2000, but still works.

  11. Some results have been removed
Refresh