I have a SQL Server 2005 instance that is experiencing some slow times. This link shows the perfmon details. Since I don't analyze this type of data daily, I was wondering if there a some real problems with the I/O system.
The server is using a SAN and the DB files and Tempdb files are on the same drive(E:). Not the best architecture, but I don't have control over the server. The server is used to run reports using Cognos, so it is mostly a read only DB.
Thanks
Here is some fun code that needs to be corrected.
select "tempSalesRpt_SubRgnDist"."Region" AS "Region", min("tempSalesRpt_SubRgnDist"."RegionName") AS "Region_Text" from "SalesReporting"."dbo"."tempSalesRpt_SubRgnDist" "tempSalesRpt_SubRgnDist", (select "SecurityMaster"."Userid" AS "Userid", "SecurityMaster"."SoldTo" AS "SoldTo" from "SalesReporting"."dbo"."SecurityMaster" "SecurityMaster" where "SecurityMaster"."Userid" = lower ('USTGACA')) "SecurityMaster4" where NOT "SecurityMaster4"."Userid" is null and "tempSalesRpt_SubRgnDist"."SoldTo" ="SecurityMaster4"."SoldTo" group by "tempSalesRpt_SubRgnDist"."Region" order by 1 asc , 2 asc
The securitymaster table is accessed on every query and that is the table that has increased recently.
I would assume that this code has non sargable code, but the execution plan shows that index seeks are used and key lookups.
I do see some new indexes could help but need to dig further.