improve.dk
Just another mindless drone looking for the perfect stack
posts - 220, comments - 475

May 2011 Blog Posts


Saving space by storing decimal values in integer data types

Written on Tuesday, May 31, 2011 by Mark S. Rasmussen in SQL Server: Internals, SQL Server: Tricks, SQL Server: Data Types

Learn how to effectively store decimal values in SQL Server while taking up as little space as possible.

4 comments | Read comments
 

Avoiding page splits by… Splitting pages

Written on Tuesday, May 24, 2011 by Mark S. Rasmussen in SQL Server: Optimization

Page splits are bad for performance, but don't base your clustered index on a sequential column blindly. Here's a situation where it doesn't make sense to do so.

2 comments | Read comments
 

Reverse engineering SQL Server page headers

Written on Thursday, May 19, 2011 by Mark S. Rasmussen in Development: .NET, SQL Server: Internals

Learn the internal format of a SQL Server page header as presented by DBCC PAGE. Using reverse engineering I'll show how to parse the header data.

No comments | Write first comment
 

Checking which database is stored in a detached mdf file

Written on Thursday, May 19, 2011 by Mark S. Rasmussen in Development: .NET, SQL Server: OrcaMDF

Learn how, using OrcaMDF we can figure out which database is stored in a deattached MDF file.

No comments | Write first comment
 

Bridging the gap between smallint and int

Written on Thursday, May 19, 2011 by Mark S. Rasmussen in SQL Server: Internals, SQL Server: Data Types

Learn the difference between smallint and int, as well as how to mimic the MySQL mediumint data type in SQL Server.

No comments | Write first comment
 

Wasted bytes add up, consider your data types carefully

Written on Tuesday, May 17, 2011 by Mark S. Rasmussen in SQL Server: Data Types, SQL Server: Optimization

You should consider your data types carefully when designing SQL Server tables. If not done properly you may waste lots of bytes per page.

2 comments | Read comments
 

Reading bits in OrcaMDF

Written on Thursday, May 12, 2011 by Mark S. Rasmussen in SQL Server: Internals, SQL Server: Data Types, SQL Server: OrcaMDF

Learn how bits are stored internally in SQL Server. In this post I'll also show how OrcaMDF parses bits from records.

No comments | Write first comment
 

Parsing dates in OrcaMDF

Written on Tuesday, May 10, 2011 by Mark S. Rasmussen in SQL Server: Internals, SQL Server: Data Types, SQL Server: OrcaMDF

Learn how SQL Server data types like date, datetime and smalldatetime are stored internally. In this post I'll also show how OrcaMDF parses these types.

No comments | Write first comment
 

Implementing data types in OrcaMDF

Written on Thursday, May 05, 2011 by Mark S. Rasmussen in SQL Server: OrcaMDF

Learn how OrcaMDF implements data type parsing as well as how to implement your own data type parser.

No comments | Write first comment
 

My PASS Summit 2011 abstracts

Written on Tuesday, May 03, 2011 by Mark S. Rasmussen in Conferences, SQL Server: PASS, Presenting

These are that session abstracts that I submitted to the SQL PASS Summit 2011.

No comments | Write first comment
 

Introducing OrcaMDF

Written on Tuesday, May 03, 2011 by Mark S. Rasmussen in SQL Server: Internals, SQL Server: OrcaMDF

Learn about OrcaMDF, the open source library for parsing SQL Server MDF files, by Mark S. Rasmussen.

2 comments | Read comments