Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Insert statement wait time

Author  Topic 

brusson
Starting Member

1 Post

Posted - 2012-07-05 : 10:01:23
Hey guys,

I'm a s/w developer and we have a client where running insert statements into a SQL Server 2008 database seems to take a long time.
To run 1955 individual insert statements takes 55 seconds on my client's SQL Server however when we move the database to a simple USB pen drive (plugged into the SQL Server) the insert statement takes 25-30 seconds. I'm at a loss as to what is causing this problem.

I've analysed the client statistics (via Management Studio) on the inserts on each database and the "Wait time on server replies" is 13 on the USB but 37 on the server HDD.

The server has the below.

2-Quad-Core E5320 CPU’s, and a Smart Array E200i RAID controller and 2 x HP 146GB 10Krpm SAS Drives in RAID/1 configuration.

Does anyone have any suggestions as to what maybe making this write process so slow?

Thanks in advance,

Ben

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-07-05 : 10:54:55
check DMV os wait stats and see what causes wait

http://blog.sqlauthority.com/2011/02/03/sql-server-dmv-sys-dm_os_wait_stats-explanation-wait-type-day-3-of-28/

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -