DBCC commands are some of the most misunderstood, yet essential to anyone maintaining a MSSQL database.
I work with MSSQL databases daily and found http://blogs.msdn.com/b/teamcenteronsql/ to be indispensable when trying to determine to use DBCC INDEXDEFRAG or DBCC DBREINDEX.
There are some main points to this MSDN blog...
DBREINDEX works to resolve "extent" or physical fragmentation
DBREINDEX uses shared locking, so only SELECT statements can be used
INDEXDEFRAG works to resolve logical fragmentation, but does nothing for physical or "extents"
Physical disk, i.e. the hard drive, defragmentation can cause "extent" fragmentation in the database, so if we are to scan a disk for fragments and decide to defragment that disk, be sure to run DBCC SHOWCONTIG afterwards to see how the "extent" fragmentation holds up and if you will then need to run DBREINDEX to resolve the issues cause by defragmenting the hard disk.
This information helped me and I hope someone else finds it equally useful.
Sunday, July 04, 2010
Saturday, February 13, 2010
Rebuilding a MSSQL 2005+ Master Database
When you find yourself unable to log into your Microsoft SQL database - first check that the service is running. If the service is not running, then you might have a corrupt MASTER system database. So then you ask... How do I fix that?
In MSSQL 2000, the task is a bit different because there is a utility in the binn folder that is not present in MSSQL 2005 or greater. To fix/rebuild the master system database, one has to go through the setup process instead.
I've explained how to do this with a command-line command at my www.enkognedo.com site. Just visit there and you will find what I had to do, why most of the on-line resources miss the target a bit, and a resource link to Microsoft that gives more detail.
Here is the link: http://bit.ly/diWPv5
In MSSQL 2000, the task is a bit different because there is a utility in the binn folder that is not present in MSSQL 2005 or greater. To fix/rebuild the master system database, one has to go through the setup process instead.
I've explained how to do this with a command-line command at my www.enkognedo.com site. Just visit there and you will find what I had to do, why most of the on-line resources miss the target a bit, and a resource link to Microsoft that gives more detail.
Here is the link: http://bit.ly/diWPv5
Friday, March 13, 2009
AOL and OpenID
I am not sure why it is so difficult to find the format for using AOL and OpenID or any OpenID for that matter. Not even Wikipedia has this information.
To sign in to a site supporting OpenID with AOL screename credentials, simply use the following format:
openid.aol.com/username
It really is just that simple. Too bad most sites talking about OpenID talk about how to setup your own OpenID - mostly developer speak, but nothing on how to actually login - unless you really dig for it.
To sign in to a site supporting OpenID with AOL screename credentials, simply use the following format:
openid.aol.com/username
It really is just that simple. Too bad most sites talking about OpenID talk about how to setup your own OpenID - mostly developer speak, but nothing on how to actually login - unless you really dig for it.
Thursday, March 12, 2009
Checking Database Integrity
There are at least two commands one can run to check the integrity of a MSSQL database. They are:
DBCC CHECKCONSTRAINTS
and
DBCC CHECKDB
The latter actually runs the following inclusively, so unless you want to be extremely granular about your process, you only need run DBCC CHECKDB:
Here is Microsoft's excellent reference:
http://msdn.microsoft.com/en-us/library/ms188796.aspx
DBCC CHECKCONSTRAINTS
and
DBCC CHECKDB
The latter actually runs the following inclusively, so unless you want to be extremely granular about your process, you only need run DBCC CHECKDB:
- Runs DBCC CHECKALLOC on the database.
- Runs DBCC CHECKTABLE on every table and view in the database.
- Runs DBCC CHECKCATALOG on the database.
Here is Microsoft's excellent reference:
http://msdn.microsoft.com/en-us/library/ms188796.aspx
Friday, May 30, 2008
HostMonster.com
It is fairly obvious there are a great many web hosts to choose from out there. Some better than others. Some with more or less options than the other, but most don't offer unlimited domains for $6.95 a month! Some might, but they typically sacrifice another feature that may be important to you. Before this month ends, I want to recommend HostMonster.com for your hosting needs. Give them a run and you'll see the difference!
Subscribe to:
Posts (Atom)