i am using sys.dm_exec_sql_text DMV to get the Query on a Particular Database.But this DMV is not showing every Query.
Example:
if i run the Query ----> select * from Employee ---------- this Query is visable in this DMV
but if i Run this Query(select * from Employee where Empid=100) this query is not showing in this DMV.
help me to find every query.
Thanks in Advance