Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Archives: October 2011

Watch those VARCHAR(MAX) columns, and ONLINE index rebuilds

G’day,

I’ve noted a few instances lately of cases where VARCHAR(MAX) columns have been used unnecessarily, when a small value (for a VARCHAR) would have been fine.

Apart from the storage implications of a VARCHAR(MAX) column there is also the issue that in SQL SERVER 2008, having a column of… Read more

2 comments, 5,249 reads

Posted in measure twice, cut once. on 26 October 2011

sp_configure OR sys.configurations? and do you back these up?

G’day,

I was checking out some of our configuration options today using sys.configurations and I started to wonder how many people actually use this table, or whether most people simply use the more common system stored procedure sp_configure.

As sys.configurations is simply a table, we can use an ORDER BY… Read more

5 comments, 1,770 reads

Posted in measure twice, cut once. on 20 October 2011

Dropping a database – such a simple thing!

G’day,

I think it’s a safe bet that everybody here has issued a DROP DATABASE statement and knows what to expect.

Well, today I was experimenting with a development database. The script I was using employed simply reusable code to drop and re-create the database – or so I though. Read more

5 comments, 1,961 reads

Posted in measure twice, cut once. on 18 October 2011