2 pages: [1] [2]
HostWeb Forums » Microsoft Databases » microsoft.public.sqlserver.servicebroker » Send Msgs From Microsoft Message Q to SQL Service Broker??

Topic: Re: Send Msgs From Microsoft Message Q to SQL Service Broker??

Reply | New Topic | This is SPAM | This is Offensive

Submitted: 4/8/2008 8:17:11 AM

By: Roger Wolter[MSFT]
Not directly. You could write a simple job that receives messages from one
system and sends them on the other. Keep in mind that you lose some of the
advantages of Service Broker such as dialogs and no two-phase commit when
you do this. Double queuing a message is usually not very efficient so you
want to look carefully at your scenario to make sure doing this is a better
solution than using MSMQ all the way to the database.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"JustWannaBeAbleToJamAndNotEmbarassMyself" <wisertime2006@gmail.com> wrote
in message
news:24bbe6f7-bc1f-4bcb-b64d-e3236a38c6e3@d1g2000hsg.googlegroups.com...
> Hopefully a simple question..
>
> Is it possible to send messages from MSMQ (Microsoft Message Queue)
> to
> SQL Service Broker in SQL Server 2005??
>
>
> Also would like to return a result code from SQL Service Broker back
> to MS MQ.
>
> Whats the basic way that it would work?
>
>


Replies below ↓

Replies

Reply | New Topic | This is SPAM | This is Offensive

Submitted: 4/8/2008 8:17:11 AM

By: Roger Wolter[MSFT]

Re: Send Msgs From Microsoft Message Q to SQL Service Broker??

Not directly. You could write a simple job that receives messages from one
system and sends them on the other. Keep in mind that you lose some of the
advantages of Service Broker such as dialogs and no two-phase commit when
you do this. Double queuing a message is usually not very efficient so you
want to look carefully at your scenario to make sure doing this is a better
solution than using MSMQ all the way to the database.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"JustWannaBeAbleToJamAndNotEmbarassMyself" <wisertime2006@gmail.com> wrote
in message
news:24bbe6f7-bc1f-4bcb-b64d-e3236a38c6e3@d1g2000hsg.googlegroups.com...
> Hopefully a simple question..
>
> Is it possible to send messages from MSMQ (Microsoft Message Queue)
> to
> SQL Service Broker in SQL Server 2005??
>
>
> Also would like to return a result code from SQL Service Broker back
> to MS MQ.
>
> Whats the basic way that it would work?
>
>


Reply | New Topic | This is SPAM | This is Offensive

Submitted: 4/9/2008 11:07:29 PM

By: Roger Wolter[MSFT]

Re: Send Msgs From Microsoft Message Q to SQL Service Broker??

If you use MSMQ from the front end to the database server, you will need to
have an application running on the database server to receive the MSMQ
messages and pass them into the database. Whether that application puts the
message on a Service Broker queue or does something else in the database
requires a two-phase commit from the MSMQ queue to the database. If I was
doing this, I would put a database on the front end server - maybe SQL
Express to eliminate any expense - and use it to send the messages to the
back end but using MSMQ would also work.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"JustWannaBeAbleToJamAndNotEmbarassMyself" <wisertime2006@gmail.com> wrote
in message
news:2486a296-7209-4399-a8a9-15036815e9a3@y21g2000hsf.googlegroups.com...
Thanks for replying.

> Double queuing a message is usually not very efficient so you
> want to look carefully at your scenario to make sure doing this is a
> better
> solution than using MSMQ all the way to the database.

I don't see how you can use MSMQ all the way to the database? At
some point don't you need an application to read messages from MSMQ
and insert them into the DB, correct?

Here's my scenario.

I have one Windows 2003 Server that is an external semi-public server
that would receive requests from other outside sources over a tcp/ip
based connection.

This Server really has no need for SQL Server 2005, and the costs
inherent with that. Ideally MSMQ would work for that Server.

Then I have another Server that is an internal Server that's highly
protected and isolated, and already uses SQL Server extensively.
This is where SQL Server Service Broker would work nicely to accept
incoming requests, and process them without having to use a custom
application.


The outside server that MSMQ would potentially reside, simply forwards
requests to the internal secure Server that SQL Server resides on.

So given that scenario what would be some potential solutions to make
that work?






On Apr 8, 10:17 am, "Roger Wolter[MSFT]"
<rwol...@online.microsoft.com> wrote:
> Not directly. You could write a simple job that receives messages from one
> system and sends them on the other. Keep in mind that you lose some of the
> advantages of Service Broker such as dialogs and no two-phase commit when
> you do this. Double queuing a message is usually not very efficient so you
> want to look carefully at your scenario to make sure doing this is a
> better
> solution than using MSMQ all the way to the database.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> Use of included script samples are subject to the terms specified
> athttp://www.microsoft.com/info/cpyright.htm
>
> "JustWannaBeAbleToJamAndNotEmbarassMyself" <wisertime2...@gmail.com> wrote
> in
> messagenews:24bbe6f7-bc1f-4bcb-b64d-e3236a38c6e3@d1g2000hsg.googlegroups.com...
>
>
>
> > Hopefully a simple question..
>
> > Is it possible to send messages from MSMQ (Microsoft Message Queue)
> > to
> > SQL Service Broker in SQL Server 2005??
>
> > Also would like to return a result code from SQL Service Broker back
> > to MS MQ.
>
> > Whats the basic way that it would work?- Hide quoted text -
>
> - Show quoted text -


Reply | New Topic | This is SPAM | This is Offensive

Submitted: 4/9/2008 11:07:29 PM

By: Roger Wolter[MSFT]

Re: Send Msgs From Microsoft Message Q to SQL Service Broker??

If you use MSMQ from the front end to the database server, you will need to
have an application running on the database server to receive the MSMQ
messages and pass them into the database. Whether that application puts the
message on a Service Broker queue or does something else in the database
requires a two-phase commit from the MSMQ queue to the database. If I was
doing this, I would put a database on the front end server - maybe SQL
Express to eliminate any expense - and use it to send the messages to the
back end but using MSMQ would also work.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"JustWannaBeAbleToJamAndNotEmbarassMyself" <wisertime2006@gmail.com> wrote
in message
news:2486a296-7209-4399-a8a9-15036815e9a3@y21g2000hsf.googlegroups.com...
Thanks for replying.

> Double queuing a message is usually not very efficient so you
> want to look carefully at your scenario to make sure doing this is a
> better
> solution than using MSMQ all the way to the database.

I don't see how you can use MSMQ all the way to the database? At
some point don't you need an application to read messages from MSMQ
and insert them into the DB, correct?

Here's my scenario.

I have one Windows 2003 Server that is an external semi-public server
that would receive requests from other outside sources over a tcp/ip
based connection.

This Server really has no need for SQL Server 2005, and the costs
inherent with that. Ideally MSMQ would work for that Server.

Then I have another Server that is an internal Server that's highly
protected and isolated, and already uses SQL Server extensively.
This is where SQL Server Service Broker would work nicely to accept
incoming requests, and process them without having to use a custom
application.


The outside server that MSMQ would potentially reside, simply forwards
requests to the internal secure Server that SQL Server resides on.

So given that scenario what would be some potential solutions to make
that work?






On Apr 8, 10:17 am, "Roger Wolter[MSFT]"
<rwol...@online.microsoft.com> wrote:
> Not directly. You could write a simple job that receives messages from one
> system and sends them on the other. Keep in mind that you lose some of the
> advantages of Service Broker such as dialogs and no two-phase commit when
> you do this. Double queuing a message is usually not very efficient so you
> want to look carefully at your scenario to make sure doing this is a
> better
> solution than using MSMQ all the way to the database.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> Use of included script samples are subject to the terms specified
> athttp://www.microsoft.com/info/cpyright.htm
>
> "JustWannaBeAbleToJamAndNotEmbarassMyself" <wisertime2...@gmail.com> wrote
> in
> messagenews:24bbe6f7-bc1f-4bcb-b64d-e3236a38c6e3@d1g2000hsg.googlegroups.com...
>
>
>
> > Hopefully a simple question..
>
> > Is it possible to send messages from MSMQ (Microsoft Message Queue)
> > to
> > SQL Service Broker in SQL Server 2005??
>
> > Also would like to return a result code from SQL Service Broker back
> > to MS MQ.
>
> > Whats the basic way that it would work?- Hide quoted text -
>
> - Show quoted text -


Reply | New Topic | This is SPAM | This is Offensive

Submitted: 5/2/2008 7:26:04 AM

By: CSAWannabe

Send Msgs From Microsoft Message Q to SQL Service Broker??

Hopefully a simple question..

Is it possible to send messages from MSMQ (Microsoft Message Queue)
to
SQL Service Broker in SQL Server 2005??


Also would like to return a result code from SQL Service Broker back
to MS MQ.

Whats the basic way that it would work?



Contents
Home
Forums
About Us
Contact Us
Web Hosting:
Hosting Providers
How to choose a name
What is a Hosting Provider
Hosting Types
Choosing the right plan
 
Search
 
Login to HostWeb.com
Email
Password
If you do not have an account with us yet, join now - it's FREE!