Quantcast
Channel: SQL Server Questions Answered
Browsing latest articles
Browse All 46 View Live

How to prevent table scans when searching LOB data?

If a SELECT has the LOB column in the WHERE clause then the query plan will involve a table scan – as you cannot create a nonclustered index over a LOB column.SQL Server Questions Answeredread more

View Article



Is my master database really corrupt?

It’s becoming increasingly common these days for DBAs to want to offload consistency checking of production databases to a secondary server, so that the heavy resource usage associated with running...

View Article

Physical ordering of records in an index

Learn how how Microsoft SQL Server maintains the ordering of record storage in indexes including at what point the records get moved around on the index pages so that they're stored in the correct...

View Article

Curious Case of the missing SOS_SCHEDULER_YIELD waits

Many of the monitoring scripts/tools for looking at wait statistics aggregate all the wait statistics and return the top 95% of all waits occurring, sorted by most prevalent waits by total wait...

View Article

SUSPECT vs. RECOVERY_PENDING

From SQL Server 2005 onwards (when the metadata subsystem inside SQL Server was extensively rewritten), the database management portion of the Storage Engine has surfaced a variety of new states in the...

View Article


Do log records ever move in the transaction log?

Why is it that sometimes when I try to shrink a transaction log file, the shrink fails? Why can’t SQL Server just move log records to the start of the transaction log? SQL Server Questions Answeredread...

View Article

Why do TRUNCATE and DROP TABLE complete so fast?

In SQL Server 2000 SP3 the deferred drop mechanism was introduced. This works by unhooking the allocations for a table and placing them on the deferred drop queue.SQL Server Questions Answeredread more

View Article

How record DELETEs can cause index fragmentation

Record deletion can indeed cause fragmentation. There are two kinds of fragmentation described by SQL Server Books Online: logical fragmentation and low page density.SQL Server Questions Answeredread more

View Article


Beware of trying to upgrade a database with a read-only filegroup

Upgrade does not work with read-only filegroups. If you try to take a SQL Server 2008 R2 database with a read-only filegroup and attach it to SQL Server 2012, you’ll see errors. SQL Server Questions...

View Article


Altering execution priority using Resource Governor

Most people know that Resource Governor allows you to specify CPU and memory limits when contention for these resources occurs, but it’s a little-known fact that you can configure relative priorities...

View Article

Image may be NSFW.
Clik here to view.

Filtering out benign waits

The simple answer is that not all waits need to be analyzed when doing performance troubleshooting. SQL Server Questions Answeredread more

View Article

Image may be NSFW.
Clik here to view.

Locking and DBCC CHECKDB

From SQL Server 2000 onwards, DBCC CHECKDB runs online by default. Even in SQL Server 2000 though, DBCC CHECKDB still took Schema-Stability locks on tables that were being checked as it could not cope...

View Article

Avoiding logging for user operations

Why does SQL Server insist on logging all operations, and is it likely that there will be an option to disable logging in future? SQL Server Questions Answeredread more

View Article


Image may be NSFW.
Clik here to view.

Is the recovery interval guaranteed?

The recovery interval is not guaranteed in any way—it’s simply a goal.SQL Server Questions Answeredread more

View Article

Image may be NSFW.
Clik here to view.

Recovering a database with a missing transaction log

Usually when a database has open transactions and the server crashes, crash recovery will run on the affected database and roll back the open transactions. SQL Server Questions Answeredread more

View Article

Browsing latest articles
Browse All 46 View Live


Latest Images