Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Fetch API cursor

$
0
0

Hi, 

The sql service is reporting the following query running more 100k execution per minutes-  fetch api_cursor 000000018.

How can I diagnose, which queries are being requested from my database. 

i tried executing the following query:

SELECT c.session_id, c.properties, c.creation_time, c.is_open, t.text
FROM sys.dm_exec_cursors (53) c
CROSS APPLY sys.dm_exec_sql_text (c.sql_handle) t
I get the following response error from sql - The user does not have permission to perform this action.

any further guide would be very helpful. Thanks


Viewing all articles
Browse latest Browse all 7129

Trending Articles