Read more about the article From SQL Server to MSMQ using PowerShell
windows

From SQL Server to MSMQ using PowerShell

How do you get records from a SQL Server table into a MSMQ queue as separate XML messages?

A commonly suggested way to communicate with MSMQ from within SQL Server is to create a CLR assembly. See for instance this article that has a great coverage of how to use CLR in this scenario. Note however that you have to import the System.Messaging.dll as unsafe for this to work. And you have to enable CLR obviously.

If this is not an option, another way to do it is to use PowerShell. Which is what I will cover in this demonstration.

(more…)

Continue ReadingFrom SQL Server to MSMQ using PowerShell
Read more about the article SQL Agent job logging with tokens
Microsoft SQL Server

SQL Agent job logging with tokens

A useful feature in the SQL Agent is the possibility to use tokens. Tokens are a number of system variables (e.g. $(ESCAPE_SQUOTE(DATE) that contains the current date) that gets expanded/replaced with a value when the job is run. An obvious use of tokens is to create a new log file with today’s date and time in the file name each time an SQL Agent job is run.

(more…)

Continue ReadingSQL Agent job logging with tokens
Read more about the article Automatic retries in a SQL Agent job
Microsoft SQL Server

Automatic retries in a SQL Agent job

Many SQL Agent jobs can be run automatically using the scheduler to run the job at specified times. But sometimes it would be better to run the job when specific criteria have been met, instead of at a specified time. For instance, when the data warehouse has finished loading.

This blog post will show how to create a job that starts and then waits / retries until given criteria are met.

(more…)

Continue ReadingAutomatic retries in a SQL Agent job
Read more about the article Introduction to Automate BPA Server
Automate BPA Server

Introduction to Automate BPA Server

If you are using SQL Agent together with SSIS and if you have a batch job solution with hundreds of interdependent SQL Agent steps spread across dozens of servers, you may have run in to some maintenance problems.

For complex batch solutions, a Business Process Automation software can be of great help. In this blog post I’ll give a brief introduction to Automate BPA Server from Network Automation.

(more…)

Continue ReadingIntroduction to Automate BPA Server