September 20, 2013 at 4:24 am
hello
The Size of my database has been increased to 10-20 GB, although the RAM of my server is quite good, still it takes lot of time to open reports ....is there is any way to reduce the size of database other than using shrink.
thanks
September 20, 2013 at 4:39 am
Shrink release the unused space from the databases.
There could be multiple reasons your report is running slow.
Either improper/bad/missing index,
bad queries.
to reclaim the space first check the db log size and data size separately
Pramod
SQL Server DBA | MCSE SQL Server 2012/2014
in.linkedin.com/in/pramodsingla/
http://pramodsingla.wordpress.com/
September 20, 2013 at 4:47 am
thanks for your reply , I agree shrink will only work on log files and data files will always remain same.
I also agree to your point that reports may be slow coz of query or lac of proper indexing,,cud plz suggest some way to work on indexes , or some other possibility to work on database , meanwhile i work on indexes.
September 20, 2013 at 4:53 am
for information
database size is 16938.25 MB
and available space is 1455.23 MB
September 20, 2013 at 4:55 am
I didn't say that shrink work only on log file ,it can work on both.
but none is advisable until necessary.
back to your question:
you can use dmvs to find missing,unused indexes
you can use profiler
create a maintenance plan for index rebuilding/reorganizing if you don't have one
Pramod
SQL Server DBA | MCSE SQL Server 2012/2014
in.linkedin.com/in/pramodsingla/
http://pramodsingla.wordpress.com/
September 20, 2013 at 5:16 am
shiwani.plrs (9/20/2013)
for informationdatabase size is 16938.25 MB
and available space is 1455.23 MB
Hi,
According to your info, you should not shrink the database's files.
If you do that, then do not forget to rebuild all the indexes. Shrink causes very high fragmentation.
Try to find some missing indexes, or check if your code is causing the low performance behaivour.
16GB is small size.
Regards,
IgorMi
Igor Micev,My blog: www.igormicev.com
September 20, 2013 at 3:08 pm
If space is not a problem ... Do not go for shrink.. In your care you are facing problem in getting new connection if i am correct. That may be because to performance issue with the DB, may locking or blocking. You need to check various factor causing this issue.
September 21, 2013 at 10:17 am
shiwani.plrs (9/20/2013)
helloThe Size of my database has been increased to 10-20 GB, although the RAM of my server is quite good, still it takes lot of time to open reports ....is there is any way to reduce the size of database other than using shrink.
thanks
When is the last time you rebuilt/reorged the indexes and when is the last time you updated statistics? I wouldn't mess around with anything else until those two things have been done.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply