PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Compress Drive SQL database
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Compress Drive SQL database

Réponse
 
LinkBack Outils de la discussion
Vieux 04/09/2008, 20h45   #1
Marie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Compress Drive SQL database

Someone has set the compress drive flag on a SQL 2005 Windows 2003 disk
drive. Our vendor thinks this may be the reason users are experiencing
performance issues with the application.

What can we expect if we remove the flag?

I have just reindexed the database. Is there another maintenance task I
should run to compact or compress SQL database?

Thank you!


  Réponse avec citation
Vieux 04/09/2008, 20h55   #2
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Compress Drive SQL database

> Someone has set the compress drive flag on a SQL 2005 Windows 2003 disk
> drive.


That shouldn't work. SQL Server should refuse to start the database if any of the database files
(except for files belonging to read-only filegroups) are compressed. I suggest you check this again.
If someone managed to hack this, then I suggest that you immediately remove compressions. It isn't
supported and it shouldn't work.


> I have just reindexed the database. Is there another maintenance task I
> should run to compact or compress SQL database?


Reindex is not the same as compact/compress. Compaction/compression is something you want to stay
away from since it tend to cause bad performance and *cause* fragmentation
(see http://www.karaszi.com/SQLServer/info_dont_shrink.asp for more info). Reindexing is one of the
things that can be a good thing to do on a periodic basis. Updating statistics as well.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Marie" <Marie@discussions.microsoft.com> wrote in message
news:8F40CF1C-CC1C-4787-BC69-7EA693837BC4@microsoft.com...
> Someone has set the compress drive flag on a SQL 2005 Windows 2003 disk
> drive. Our vendor thinks this may be the reason users are experiencing
> performance issues with the application.
>
> What can we expect if we remove the flag?
>
> I have just reindexed the database. Is there another maintenance task I
> should run to compact or compress SQL database?
>
> Thank you!
>
>


  Réponse avec citation
Vieux 05/09/2008, 08h19   #3
John Bell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Compress Drive SQL database


"Marie" <Marie@discussions.microsoft.com> wrote in message
news:8F40CF1C-CC1C-4787-BC69-7EA693837BC4@microsoft.com...
> Someone has set the compress drive flag on a SQL 2005 Windows 2003 disk
> drive. Our vendor thinks this may be the reason users are experiencing
> performance issues with the application.
>
> What can we expect if we remove the flag?
>
> I have just reindexed the database. Is there another maintenance task I
> should run to compact or compress SQL database?
>
> Thank you!
>


http://blogs.msdn.com/sqlblog/archiv...d-volumes.aspx

Even if it did work, a compressed drive would slow down I/O significantly,
indexing would probably not improve the situation a great deal.

John

  Réponse avec citation
Vieux 08/09/2008, 21h05   #4
Marie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: Compress Drive SQL database

Thank you!
Three more questions.....

How do I run update stats?

Can I schedule reindex and update stats to run periodically, or are these
jobs best done manually?

Finally...any ideas what I can expect when I remove the compress flag?

Thanks again!

"Marie" wrote:

> Someone has set the compress drive flag on a SQL 2005 Windows 2003 disk
> drive. Our vendor thinks this may be the reason users are experiencing
> performance issues with the application.
>
> What can we expect if we remove the flag?
>
> I have just reindexed the database. Is there another maintenance task I
> should run to compact or compress SQL database?
>
> Thank you!
>
>

  Réponse avec citation
Vieux 08/09/2008, 23h58   #5
John Bell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Compress Drive SQL database


"Marie" <Marie@discussions.microsoft.com> wrote in message
news:BC037643-B4DB-40A8-9446-84F93E6F3540@microsoft.com...
> Thank you!
> Three more questions.....
>
> How do I run update stats?
>

You can call sp_updatestats or run UPDATE STATISTICS for each table
yourself.

> Can I schedule reindex and update stats to run periodically, or are these
> jobs best done manually?

These can be put in a job with steps you have created yourself ( see
sys.dm_db_index_physical_stats in books online for an example of re-indexing
depending on the level of fragmentation ). Alternatively you can create a
maintenance plan and schedule that (again see books online)
>
> Finally...any ideas what I can expect when I remove the compress flag?
>

Have you changed windows explorer to display compressed files in a different
colour to check that database files are compressed? If they are, then
stopping SQL Server before you change it, otherwise the file will be open
and you can't change it.

> Thanks again!
>
> "Marie" wrote:
>

John

  Réponse avec citation
Vieux 10/09/2008, 20h06   #6
Marie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Compress Drive SQL database

Thank you for all your !

"John Bell" wrote:

>
> "Marie" <Marie@discussions.microsoft.com> wrote in message
> news:8F40CF1C-CC1C-4787-BC69-7EA693837BC4@microsoft.com...
> > Someone has set the compress drive flag on a SQL 2005 Windows 2003 disk
> > drive. Our vendor thinks this may be the reason users are experiencing
> > performance issues with the application.
> >
> > What can we expect if we remove the flag?
> >
> > I have just reindexed the database. Is there another maintenance task I
> > should run to compact or compress SQL database?
> >
> > Thank you!
> >

>
> http://blogs.msdn.com/sqlblog/archiv...d-volumes.aspx
>
> Even if it did work, a compressed drive would slow down I/O significantly,
> indexing would probably not improve the situation a great deal.
>
> John
>

  Réponse avec citation
Vieux 11/09/2008, 08h21   #7
John Bell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Compress Drive SQL database


"Marie" <Marie@discussions.microsoft.com> wrote in message
news:A5C961EC-1AF3-4B73-86D0-CB970EC3747B@microsoft.com...
> Thank you for all your !
>
> "John Bell" wrote:
>
>>
>> "Marie" <Marie@discussions.microsoft.com> wrote in message
>> news:8F40CF1C-CC1C-4787-BC69-7EA693837BC4@microsoft.com...
>> > Someone has set the compress drive flag on a SQL 2005 Windows 2003 disk
>> > drive. Our vendor thinks this may be the reason users are experiencing
>> > performance issues with the application.
>> >
>> > What can we expect if we remove the flag?
>> >
>> > I have just reindexed the database. Is there another maintenance task
>> > I
>> > should run to compact or compress SQL database?
>> >
>> > Thank you!
>> >

>>
>> http://blogs.msdn.com/sqlblog/archiv...d-volumes.aspx
>>
>> Even if it did work, a compressed drive would slow down I/O
>> significantly,
>> indexing would probably not improve the situation a great deal.
>>
>> John
>>


On the subject of compression, you should look at the compression availble
in SQL 2008!

John

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h32.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12958 seconds with 15 queries