Click here to Skip to main content
15,886,813 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: (untagged)
HELLO ALL,

I HAD A VERY LARGE DATA IN MY SQL DATABASE ,AND DATABASE IS TAKING TOO MUCH TIME FOR
QUERY EXECUTION.It taking 4352ms for execution,I want it to decrease upto 1500ms.

As i had use the INDEX QUERY(CLUSTERED AND NONCLUSTERED INDEX),BUT NOT GOT THE RESULT.
FOLLOWING ARE MY INDEX QUERY EXAMPLE.

syntax:-

CREATE NONCLUSTERED INDEX index_name
ON tbl_name()
INCLUDE()

But I am not getting the result,
AnyOne can help me out.


Thank you

What I have tried:

syntax:-

CREATE NONCLUSTERED INDEX index_name
ON tbl_name()
INCLUDE()

CREATE CLUSTERED INDEX index_name
ON tbl_name()
INCLUDE()
Posted
Comments
Chris Maunder 4-Feb-16 13:19pm    
There's not enough information to answer this. Without knowing your table structure or the query itself.

1 solution

There is no way we can tell you what to do to improve the performance because we cannot see your database nor the data in it. It could be a lack of indexes, could be bad statistics, or it could be well optimized as is.

I would; however, recommend using the Database Engine Tuning Advisor. In Sql Management Studio put the Sql into a new query window. Then click Tools, Database Engine Tuning Advisor. Then go through the rest of the steps.

The advisor will execute your query and then make recommendations on how to improve performance. You'll likely want to implement some of the recommendations. But don't just do them all blindly, make sure to look them over and understand them.
 
Share this answer
 
Comments
Sascha Lefèvre 4-Feb-16 13:38pm    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900