Ctrl-alt-geek
Archives: May 2012
Plan cache in SQL Server 2008R2
I was curious to look at the effect of database options, on the SQL server plan cache.
I have restored the Adventure works sample database onto my SQL Server 2008 R2 RTM instance four times as AW1, AW2, AW3 and AW4.
I have used, and slightly modified, a query from… Read more
1 comments, 243 reads
Posted in Ctrl-alt-geek on 23 May 2012
Quick tip: sp_configure and sys.configurations
In order to query the configuration settings of a server you can run this sproc:
exec sp_configure
On a default install of sql server this will return 16 rows. In order to see all rows you need to run this:
exec sp_configure 'show advanced options',1 reconfigure
Now when you run… Read more
1 comments, 278 reads
Posted in Ctrl-alt-geek on 16 May 2012
Setting up transactional replication using T-SQL
Replication is one of the more complex of the SQL native “HA/DR” technologies. There are a lot of moving parts. Here are the steps to configure a basic transactional replication topology, with a publisher and distributor on the same instance and using push subscriptions. Most of the stored procedures have… Read more
1 comments, 316 reads
Posted in Ctrl-alt-geek on 15 May 2012
Working with bitwise data in SQL Server
I was working with a group of students on a design brief. The brief was to partially implement a database design based on the LinkedIn web site. A discussion came up around the possibility of implementing the contact preferences (essentially a set of boolean values) as bitwise data, so I… Read more
0 comments, 232 reads
Posted in Ctrl-alt-geek on 10 May 2012



Subscribe to this blog