The solution I'm going to use for this is to write a CLR stored procedure and deploy it to SQL Server.
Inside the CLR stored procedure, I will use the MQ.NET api.
Update: I created a stored procedure using the following code:
using System; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using Microsoft.SqlServer.Server; using IBM.WMQ; public partial class StoredProcedures { [Microsoft.SqlServer.Server.SqlProcedure] public static int MQStoredProc(String queueManager, String queueName, String messageText) {
This is not ready for production, but successfully inserts messages in the queue manager running on the same server as the SQL server in binding mode.
source share