Convert an Integer Date to a Smalldatetime
A common way to represent a date – often in mainframe systems – is in the format yyyymmdd. Unfortunately it is not easy to do calculations on such a representation. To be able to use the native T-SQL...
View ArticleDeploying a Microsoft BI Solution via Script
At the end of a phase of a business intelligence project, when it has been accepted and it is time to move into production, comes the deployment on the production environment. The deployment itself...
View ArticleA Stored Procedure to Launch a SQL Agent Job and Wait
If you need to launch a SQL Agent Job from within a stored procedure you can simply use msdb..sp_start_job @job. But what if you need to wait for that job to finish before you can continue whatever you...
View ArticleSynchronize a SQL Server Database with an SVN Repository
Yes, it is possible to automatically synchronize a SQL Server database with an SVN repository. Every change to a table, stored procedure or other database object will automatically be committed to the...
View Article