sys.dm_exec_sql_text(qs.sql_handle) db_id is null, what db is refer to
when db_id is null in sys.dm_exec_sql_text(qs.sql_handle)what does the query runs against? which database counts as consuming the cpu?
View Articlelatch details
hi gurus,I there any dmv query that gives details of latch in instance.This shouldnt degrade the performance while hitting database.thanks in advance,regards,venkat.
View Articlememory usage details
hi gurus,I there any dmv query that gives details of memory usage details like total memory,sql cache memory,lock memory,workspace memory,connection memory,optimizer memory in instance.This shouldnt...
View ArticleFileTable with new Resilient File System in Windows Server 2012
We are looking for best storage solution for our multi-tenant application. We are not looking for backup or NAS kind of solution. We have tried using FileTable in SQL Server 2012. But it does not...
View Articlelock details
hi gurus,I there any dmv query that gives details of locks like lock requests/min,lock waits/min,average wait time in instance.This shouldnt degrade the performance while hitting database.thanks in...
View ArticleDDL trigger to stop permissions from being granted?
Greetings. After years of granting everyone db_dataReader to our replicated databases, we now have a requirement to restrict access to just Views for one group.Easy enough. The problem will be...
View Articlesys.dm_exec_query_stats is the Cache cleared when sql restart?
sys.dm_exec_query_stats (Transact-SQL)SQL Server 2012 Returns aggregate performance statistics for cached query plansin SQL Server 2012. When server restarted, will the cached plan write to somewhere...
View Articlecpu utilization
Hi Gurus,please give me dmv query that captures cpu utilization for last 24 hours.please help me.thanks in advance.regards,venkat
View Articletotal_physical_reads in sys.dm_exec_query_stats, how many bytes each read?
is each read 512bytes?
View Articlesql statistics
hi gurus,I there any dmv query that gives sql statistics.This shouldnt degrade the performance while hitting database.thanks in advance,regards,venkat.
View ArticleFull Text Indexing Architecture + Database Design
I'm currently conducting research for the design of an application that requires to search a large number (at least 100s of millions) of documents (of various types, PDF, Word, HTML etc.) and I'm...
View ArticleMonitoring Store Procedure
Hi allare there any method to track down the store procedure statistics like:1. when executed? and executed in a specific time ?2. the user who executed the store procedure.......
View Articlewmi query in case of sql named instance
HiI have a piece of c++ code that connects to sccm server. What i do is that i run WMI query ( SMS_SCI_SiteDefinition) to get the host and database name and then use SQLDriverConnect function to...
View ArticleClustering: How to Connect to SQL Server on the internal IP address?
Hi,I have an SQL Server cluster working.the users and applications use the cluster IP to access SQL, good.I have also a management network card for the admins, mainly used for RDP connections on the...
View Articlecurrently running queries
Hi gurus,need a dmv query that displays all the current running sql queries.this query shouldnt degrade performance when hitting the database.thanks in advance.regards,venkat.
View ArticleWAITS
Hi Gurus,is there any DMV query for finding waits for user defined database.I wanted to represent the data through graph Please give suggestion and please specify what are the columns in the query is...
View ArticleMost Expensive Queries
Hi Gurus,is there any DMV query for finding most expensive queries for user defined database.I wanted to represent the data through graph Please give suggestion and please specify what are the columns...
View ArticleClustered Index Update or Insert Expensive Query Plan Operator
Hi Everyone,I'm in the process of analyzing a sql 2008 database for performance reasons. I have discovered a significant number of DML query plans that seem to show a high operator cost for 'Clustered...
View ArticleTimeout while shrinking log file
I am using MS SQL Server 2008 R2. I'm trying to shrink the log file and then the data file of one of my DBs. Virtually every time I try, I get an error about the lock timeout period exceeded. The DB is...
View Articletracking SQL client connection bandwith\resources
Occasionally are computer connections to our main SQL server database application slows down for users all of a sudden and application freezes for several seocnds. Then everything is mostly fine for...
View Article