.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

SQL Server - Analyzing Full Scans / Sec using DMV

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :Sql Server


I am using SQL Server 2005. I have very large value for Full Scans / Sec. Though I am newbie in performance tuning, I want to find out the following values.

 Can somebody tell me how to find the following values using SYS.DM_DB_INDEX_USAGE_STATS or any other DMV? A query that reurns these values will be exaclty what I am looking for.

1. The table that undergone Full Table Scan

2. The query that caused the table to undergo Full Table Scan

3. Time of Scan

4. Time taken for completing the scan



View Complete Post

More Related Resource Links

SQL Server 2005 Log Shipping and subsequent FULL backups that are needed

Afternoon,   I have a few Log Shipped DBs that are working great.   Currently they are set to fire off every 15 minutes 24/7.   My question is this ... I need to get FULL backups of the source DBs in order to restore them on certain Dev boxes.   If I were to execute the full backup on one of these Log Shipped DBs ... how would it affect the log shipping process?   Is there a special method to accomplish this?   As a side note, what would be some concerns/issues if in being able to create the FULL backups and not interupt log shipping, I were to create the backup using a 3rd party tool like Quest LiteSpeed?   I sure wish we were on Enterprise, then I could create a mirror and then snapshot off it to create my backups BUT ... that is not the case as we stand today.   Thanks

Do I need free space when doing full database restore in SQL Server 2005?


I have a drive 'F' with 40G free space. I try to restore a database whose data + log file size is 60G.

The restore fails. Is it because a full restore needs  free disk space of 60G in this case?


Moving full-text catalog from one server to another using backup / restore


Dear Sirs,
I'm having a problem with Full-Text Catalog in SQL SERVER 2005.
The problem is: I did a backup of a database that has a full-text catalog from one server and restored on another server.
The restore worked perfectly, but the catalog is down because it is pointing to the physical path from the source server.
To recover this full-text catalog I tried the commands below:

use master

sp_detach_db 'SiteEng2004'

(FILENAME = 'D:\SQL SERVER\DADOS\SiteEng2004\SiteEng2004_Data.MDF'),
(FILENAME = 'E:\SQL SERVER\LOGS\SiteEng2004\SiteEng2004_Log.LDF'),

Unfortunately it did not work and the following error message occurs :

Msg 5120, Level 16, State 101, Line 2
Unable to open the physical file "D:\SQL SERVER\DADOS\SiteEng2004". Operating system error 5: "5(error not found)".

Could anyone help me on what I should do to restore this full-text catalog on the destination server ?
Thanks in advance.

Enable Full Text Index in VWD 2008 / SQL Server Express 2008


 Hi, I am using VWD 2008 Express and SQL Server 2008 Express. I want to enable full text index in some of my table. How do I do that? I only have  SQL Server Management Studio Express 2008. As far as I know, I cannot use SQL Server Management Studio Express 2008 to update the full text catalog according to : http://msdn.microsoft.com/en-us/library/ms365247.aspx

My tables are also not enable Full Text Search by default. 


 Any help would be very much appreciated!

 Edit 1: Someone had a similar problem to mine on this link: http://forums.asp.net/t/1169961.aspx
I installed the Sql Server 2008 Express with Advance Services and made sure that Full Text functionality is installed. However I don't get a full text menu in SQL Server Management Studio. 

 Edit 2: I uninstall and reinstall SQL Server 2008 Express with Advance Services but still couldn't be able to enable full text index.

 Edit 3: After see this, I guess I have to do it manually then:  http://forums.microsoft.com/MSDN/ShowPost.aspx?siteid=1&PostID=3912985

SQL Server 2008 Management Studio Express and full version


We have SQL server 2008 installed in a virtual server and I just want to download tools for querying etc...om my pc. I downloaded the SQL Server 2008 Managemnt Express and installed the tools. My DBA is saying remove the express install and install the tools from the full version. Is he correct or could I have used the SSME install to query the full version?

cannot get full stack trace exceptions from server if I am using a CustomChannel even if CustomError



When I am implementing my own custom channel for .net remote object calls, I cannot get full stack trace on exceptions from the server.

Problem description:

I have a server with the following remote class:

 public class MyClassRemote : MarshalByRefObject   
 public string GetServerString()       
 {                        throw new NullReferenceException("my exception");           
 return "sample message";        

at start up, the server has the following initialization code:

RemotingConfiguration.CustomErrorsMode = CustomErrorsModes.Off;
MyChannel myChannel = new MyChannel(myChannelSettings);
ChannelServices.RegisterChannel(myChannel, false);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(MyClassRemote), typeof(MyClassRemote).FullName, WellKnownObjectMode.SingleCall);
Note: Keep in mind that I did set CustomErrorsMode.Off on the server side. So, I should get all the

How to move the SQL Server SQLFT log files created by the full text catalog process.


I need to move the location of the SQLFT text log files from it's current location %ProgramFiles%\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\LOG folder to another larger drive to accomodate the log file growth.  I cannot find anything on how to make this change.  Does anyone have an answer?  I have found this is a default at install - but during install did not find how to change this. 

Thank you.



SQL Server 2005 Full Recovery


Hi All,
How do I do full recovery of database in SQL Server 2005.
I have full backup at 5 PM
and log till 6.45 PM. Now how do I recover my database. Could any one provide the scripts for backing up using roll forward.




How do I view Full-text search catalogs in SQL Server 2008 Express?


I've installed SQL Server 2008 express with advanced services on my Vista Home Premium, and have enabled Full-text search. 

"SELECT fulltextserviceproperty('IsFulltextInstalled');" returns 1, and using CREATE FULLTEXT CATALOG mycatalog I was able to create my Full-text search catalog. I was then able to create full-text indexes on my DB columns, and even search through them.

However, there is no &

Will full or differential backup break LSN chain if compatibility level = 80 in SQL Server 2005/2008

My understanding is that full or differential backup will not break LSN chain starting in SQL Server 2005.  However, I'm not sure whether this applies to databases with compatibility level 80 in SQL Server 2005/2008 or not.

sql server trial to full

can I upgrade my trial version of sql 2008 r2 to full version by entering the cd key ?

Full-Scan & ocks-timeouts counter in sql server is very high



1. I am seeing full scan for sql server is very high(319 full table scan\sec).

2. Locks-Timeout is 249.0880 lock timeouts / sec for _Total, 29.4718 lock timeouts / sec for Page, 219.6163 lock timeouts / sec for Key, 0.0000 lock timeouts / sec for RID, 0.0000 lock timeouts / sec for Object, 0.0000 lock timeouts / sec for Metadata, 0.0000 lock timeouts / sec for HoBT, 0.0000 lock timeouts / sec for File, 0.0000 lock timeouts / sec for Extent, 0.0000 lock timeouts / sec for Database, 0.0000 lock timeouts / sec for Application, 0.0000 lock timeouts / sec for AllocUnit 

I am using sql server 2008R2 enterprize edition with 30 Gb of dedicated memory.

I have few question regarding regarding above performance counters.

What is acceptable limit for above counter and how can i reduce this if they are high.

call JavaScript - jQuery code from ASP.NET Server-Side

jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side.

Making Ajax Callbacks to the Server Using jQuery with ASP.NET

In the first part of this article series I introduced jQuery's functionality and how it provides a rich client side programming model. This time around I'll expand on these concepts and show you how you can use jQuery in combination with ASP.NET using it as an AJAX backend to retrieve data. I'll also discuss how you can create ASP.NET controls and otherwise interact with jQuery content from ASP.NET pages in WebForms.

jQuery is just a JavaScript library so it will work seamlessly with ASP.NET both from page code as well as through backend driven code using the Page.ClientScript object or ScriptManager. You can use jQuery on its own as a client side and Ajax library that communicates with ASP.NET or you can use jQuery in combination with ASP.NET AJAX. The two actually complement each other quite well as jQuery provides functionality that the ASP.NET AJAX library does not and vice versa. For the most part the interaction between the two libraries is trouble free except for a few very rare edge cases.

MS SQL Server: Disconnect Users From Database - Kill User Session

If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

MS SQL Server: Search All Tables, Columns & Rows For Data or Keyword Query

If you need to search your entire database for specific data, this query will come in handy.

So when a client needs a custom report or some sort of custom development using Great Plains, most of the time I will have to track down the data in the system by running this query and find the table(s) it is in.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend