.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

What are steps to check our over database helth and prove its performance ?

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :Sql Server
Here is my information about SQL server and window platform . Microsoft SQL Server 2005 - 9.00.3228.00 (X64) Feb 9 2008 09:33:32 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2) I have been here only 2 months ,and I have not much more details about their database .I am looking there are some performance issues daily such as high CPU spikes ,Greater disk queue lenght ,high pages expectancy etc .so I need to know anyone can give me step by step infromation to look at new Database perfomance and how to analyse the problem and whats necessary steps do I need to improve my company database perfomance ?I dont know from where I will start to look in Database  ? Please give me some steps by steps detail infromation ,so I will start to look at my database and find out whats causing sometimes high CPU spikes ,highter disk queue leght ,high pages expectancy .How can I find which query are running long ,and causing high CPU spike ?How can I check in which table I need to add or remove indexes to improve perfomance ? Thanks      

View Complete Post

More Related Resource Links

Performance tuning tips for database developers

Performance tuning is not easy and there aren't any silver bullets, but you can go a surprisingly long way with a few basic guidelines.

In theory, performance tuning is done by a DBA. But in practice, the DBA is not going to have time to scrutinize every change made to a stored procedure. Learning to do basic tuning might save you from reworking code late in the game.

Below is my list of the top 15 things I believe developers should do as a matter of course to tune performance when coding. These are the low hanging fruit of SQL Server performance - they are easy to do and often have a substantial impact. Doing these won't guarantee lightening fast performance, but it won't be slow either.

Under the Table: How Data Access Code Affects Database Performance


In this article, the author delves into some commonly used ways of writing data access code and looks at the effect they can have on performance.

Bob Beauchemin

MSDN Magazine August 2009

How to check if record is added in access database



I'm trying to put a registration page together in Visual Web Designer.

I would like to send a confirmation Email after someone is leaving his registration data and pressing the INSERT button.

The key fields in my database are: Email, Name, Surname, Address

Before I send the confirmation Email I would like to check if the email value entered in the form is realy added to the database.

Please for help in this matter. I was copy past already some C code in my page, therefore it will be fine if the code can be in C.

Again, I need help to:

- checking if record is realy added to database after pressing INSERT button

- setup the confirmation Email

Thank you in advance.


How can i check if record already exist in sql-server database ...

How can i check if record already exist in sql-server database ...

how to check the data which i passesd in text box for logine is available in the database or not.

Hi, I created login form in which ---Username, Password & LogOnType is there, When i m passing the correct value i m login successfully. But instead of entering correct value when i m entering wrong values and clicking SignIN its gives the exception. If i m not entering any value in text box and clicking SignIn its ask for values..................................... How i will make the validation which will check the textbox data which i entered there is correct or not. I want error  msg when data not in the database.........................if data in database then successfully logedIn msg.............   please help me ..............................try to give one example with code if possible   Thanku  

Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential cau

Attempting to upgrade from SQL 2005 EE to SQL 2008 EE on Vmware ESX 3.5 virtual server. below is info from Detail.txt related to successful install with failures... 2010-09-02 13:50:46 Slp: Sco: Attempting to check if file 'D:\Data\MSSQL.1\MSSQL\LOG\ERRORLOG' exists 2010-09-02 13:50:46 Slp: Sco: Returning security descriptor O:BAG:SYD:AI(A;ID;FA;;;S-1-5-21-3788118842-658835432-3441893140-1006)(A;ID;FA;;;S-1-5-21-3788118842-658835432-3441893140-1007)(A;ID;FA;;;BA)(A;ID;FA;;;SY)S:AI(AU;IDFA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD) 2010-09-02 13:50:46 Slp: Configuration action failed for feature SQL_Engine_Core_Inst during timing ConfigRC and scenario ConfigRC. 2010-09-02 13:50:46 Slp: Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes. 2010-09-02 13:50:46 Slp: Configuration action failed for feature SQL_Engine_Core_Inst during timing ConfigRC and scenario ConfigRC. 2010-09-02 13:50:46 Slp: Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineConfigException: Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes. 2010-09-02 13:50:46 Slp:    at Microsoft.SqlServer.Configuration.SqlEngine.SqlServerServiceBase.WaitSqlServerStart(Process processSql) 2010-09-02 13:50:46 Slp:    at Microsoft.SqlServer.Configuration.SqlEngine.SqlServerServiceSCM.StartSqlServer(St

Two steps to check out?

When I go to Documents folder that I have created and access a folder, I would like to open and check out a file in one step, but appears to need two.  It appears that the only time that it updates "Checked Out To" is when I choose check out.  Then I have to go open the file via explorer or Word/Excel (or whatever is appropriate).  If i double click on the file while in SharePoint or choose Edit in Microsofft... mode, it does open the file, but does not indicate that it is not checked out.  I want to make sure that no one else can also check out or open the same file and make changes/updates while I am doing this.  Does everyone have to go through the two steps to check out and then open to enable this?  Or is there quick one step that I am missing to open a file and indicate that it is checked out? Thanks Peter

Slow performance when searching in "any part of field" of a SQL Server database using a Microsoft Ac

We have just migrated our back end database from Access to MS SQL Server 2008 R2. We have noticed better performance on our searches - unless we select to search in "any part of field" in Access (with Access' built-in search function - we use a mix of Access 2003 and 2007). This takes nearly 20 seconds to find the result, whereas before the migration it was taking 5-7 seconds (compared to instant results we now experience when searching for whole fields). The main fields we search are not large - usually just two words. Obviously it is better to search for a whole or start of a field, but this is not always possible. The contractor that assisted us in this project has told us that this "is just the way SQL works with Access". Is this really true? I find it hard to believe two MS products would have such a big issue between them. I presumed using SQL with an Access front end would be a common setup, which is why I thought this must be a problem with our setup. Is there any way to fix this speed issue?

migration MSDE 2000 SP3 database to SQL 2005 SP3: low performance on 2005 Express

I've detach MSDE 2000 SP3 database. I've attach into SQL 2005 Express SP3 and SQL 2005 Standard SP3. I've change compatibility level to 90. I've update statistics with EXEC sp_MSforeachtable @command1="UPDATE STATISTICS ? WITH FULLSCAN" The execution time of a TSQL into the same hardware (1 CPU, Quad Core) are: SQL 2005 Express SP3: 20" SQL 2005 Standard SP3: 0" The execution plan is different. Why?

How to resolve "Performance counter registry hive consistency check" failed?

I want to install SQL Server 2008 November CTP Developer Enu. When "System Configuration Check" it shows: Rule "Performance counter registry hive consistency check" failed. The performance counter registry hive is corrupted.   And cannot continue installing. How to solve this problem?

Config Database check?

Is there a way to tell SharePoint 2010 to physically check the content in the configuration database to insure all the tables and records are correct? Not a database file check, I mean check what is actually in the database? We are experiencing an error that seems noone else is getting and we are only getting it on 1 page within the Central Administration Site. (http://*/_admin/ManagedAccounts.aspx). We have already tried removing and reinstalling the central administration site. Only thing left is possible bad data within the database itself.Owner, Quilnet Solutions

how check username and password store in database

hi i have login page. how check username and password store in database . plz reply with code.i did it by form authentication b ut it not work.

Steps to performance tune multiple databases with multiple stored procedures

I have a sql2008R2 server with approximately 10 databases and 1400 stored procedures that will eventually support a website.  I currently have 3 sql2008 machines doing the same in production.  The goal of the new server is to remove all non-clustered indexes and performance tune all the stored procedures using the sql tuning adviser and then compare the performance to what we have in production.  I have been dragging my feet on this project as I dont really know where to start as many of the procs exec other procs and access many database objects.  I feel that there should be a specific order in how I start this project and I am looking for some advice from other users that may have had a similar project.   Thanks in advance.

"Performance counter registry hive consistency check" failed


I'm trying to install SQL Server 2008 R2 Express, but there is just no way to make it work.

I have tried changing the values in the registry as said here.
But it does not help, nor can I find all the values that are mentioned.

I have tried most parts of the KB article here.
But what I could do, does not help, and I cant find the .dat files mentioned, anywhere.

I'm running a Windows 7 installation virutally with Parallels Desktop on a mac for the only intrerst of using VWD/VS C# expresses and the MS SQL Server. I have even tried to just delete the entire windows installation, reinstalling windows again and then opening IE downloading SQL Server the first thing I do and it still fails as default...

I can't se why it should not work. I mean the system is made by Microsoft just like the programs I'm trying to install, so with even them beeing a missfit, go figure why I'm on a mac. I obviously do not know enough about this stuff to fix the registry, I've tried lots of different cleaning programs and stuff, but nothing helps, so what do I do? just give up?

error on install: Performance counter registry hive consistency check - Status:Failed


Hi, I'm tryng to install sql server 2008 in win vista and in the System Configuration Check, item: Performance counter registry hive consistency check has the status FAILED  all the others items has PASSED and the setup stops here theonly option is CANCEL. Thus anyone knows the possible problem and resolution to this?


best regards

how to check if it is Windows Internal Database or sql express


I forgot if I install it as internal database or sperately installed sql express, mostly like I used the default, but I would like to confirm, is there any way to tell if it is internal database, I heard if it is, then there is no database 4GB limit, also please confirm the limit if you know. thanks

C# How to check prammatically if null value exists in database table (using stored procedure)?


How to programattically check if null value exists in database table (using stored procedure)?

I know it's possble in the Query Analyzer (see last SQL query batch statements)?

But how can I pass null value as parameter to the database stored procedure programattically using C#?

Although I can check for empty column (the following code passes string.Empty as parameter but how to pass null value?), I cannot check for null value in the following code snippet:

SQL Queries:

USE [master]

IF EXISTS (SELECT name FROM sys.databases WHERE name = 'ExampleDatabase')
DROP DATABASE [ExampleDatabase];

CREATE DATABASE [ExampleDatabase];

USE [ExampleDatabase];

DROP TABLE dbo.ExampleTable;

IsActive BIT,

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