Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello
I have one database that holds data for 3 years now. is about 106 MB
How can i speed up this database?is there any script that can use for fragmenting the data?

What I have tried:

I have try shrink database.but the result is the same.Database is too slow
Posted
Updated 13-May-16 9:42am
v2
Comments
ZurdoDev 13-May-16 11:26am    
106 MB? That's very small db. I wonder if you read the size right. And the size of the db has nothing to do with the performance.

You can archive data, you can add indexes, speed up your server, partition data, etc.

You really need to figure out why it is slow first.
Ardi Durres 13-May-16 11:32am    
see the software that runs very slow on retrieve data from database.So this makes me think that the database is slow. if i delete old data can this help on speeding up?

ZurdoDev 13-May-16 11:42am    
It all depends on your indexes. There is no way we can know. But probably.
Ardi Durres 13-May-16 12:05pm    
I cannot see even the maintance plan because database is sql server 2005 express.is there any way to rebuild indexes or repair them?
AnvilRanger 13-May-16 15:26pm    
You can use SSMS to connect to a SQL Express instance.

Without know more details it is nearly impossible to give you a concrete answer. There are several items you can look at.

First and probably easiest would be to check your index. If you do have indexes you really should put rebuilding them on some plan. Here is a good link to get you started Rebuild Index Task (Maintenance Plan)[^]. Now if you do not have indexes on your tables that is the first place to start. A good place to start is to use the Sql Data Tuning Ad visor. What you can do is look at the queries you are running and look for where and group by clauses. That is a good place to start.
 
Share this answer
 
Quote:
How can i speed up this database?
That is nice way to answer a question that can't be answered, thank to the lack of information.

To begin, explain the schema, the indexes, the kind of queries, the usual usage.
Use Improve question to update your question.
 
Share this answer
 

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