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

GO-SQL blog A blog dedicated for SQL Server Developers alike!

My name is Andrew Fenna, and I am a database developer at The Laterooms Group. I have written this blog to educate my fellow database developers in subjects that I think are necessary to keep at the top of our game. I have been working with RDBMS’s since 2002 and I have worked within financial, gaming, public, and travel sectors within the Northwest of England. I have gained quite a lot of experience throughout my journey and have tackled some very difficult challenges along the way. Therefore, I am blogging my experiences, which I hope will give you the inspiration to try and tackle problems that are deemed impossible to start, but with some encouragement and guidance become much more simpler and structured, thank you for your time. Andrew J Fenna.

Archives: December 2013

Increasing database unit tests connection timeout period in VS 2012

Have your ever had a timeout error in a visual studio 2012 unit test like below?

How to get around this problem is to modify your unit testing app.config file to increase the “CommandTimeout” setting to the desired period of time (in seconds) see below:-

Run the test again and… Read more

A quick hint – evaluating 2 tables in one IF BEGIN END block

Have you ever wanted to evaluate 2 tables in one IF BEGIN END block, I firstly wrote this:-

Which always evaluated to 0, this shocked me so i rewrote as :-

Which gave me the outcome i needed.

Regards

Andrew

Read more