Showing posts with label message. Show all posts
Showing posts with label message. Show all posts

Wednesday, March 28, 2012

Is it possible to install SQL Sever 2005 Developer on Vista Home Premium?

During the install, I receive this message:

"Microsoft Internet Information Services (IIS) is either not installed or is disabled. IIS is required by some SQL Server features. Without IIS, some SQL Server features will not be available for installation. To install all SQL Server features, install IIS from Add or Remove Programs in Control Panel or enable the IIS service through the Control Panel if it is already installed, and then run SQL Server Setup again. For a list of features that depend on IIS, see Features Supported by Editions of SQL Server in Books Online."

So, I went to the following and did everything documented about installing IIS 7.0.

http://msdn2.microsoft.com/en-us/library/aa964620.aspx

After installing IIS and verifying that it is serving pages just fine, when I try to install again, I still get the quoted error message above.

I am beginning to think that I cannot install SQL Server Developer on Vista Home Premium.

Does anyone know?

Thanks

Here's a link that should help: http://support.microsoft.com/kb/920201

I was experiencing the same problem. In my case, I did not have Windows Authentication selected when I installed IIS. When I added it, the warning went away.

|||Thanks. I'll try it with Windows Authentication selected.

Friday, March 23, 2012

Is it possible to disable Poison Message Detection?

Hi,

I'm using the Service Broker to parallize my processes (I know that the Service Broker was not designed for that purpose), however it's working quite well.

I use the broker procedure to start procedures which all process all a part of the workload. When the procedure fails because of a lock timeout (or for that concern, for whatever reason), I rollback the transaction (which also roll back my message received on the queue so that it can be retried at a later time.). And this is where my problem lies, if there are 5 sequential rollbacks of messages then the poison message detection kicks in and disables the queue, stopping all the processing. :(

Is there a way to disable poison message detection? I have implemented my own stop-mechanism through a counter system on a per sub-task system so if I could disable poison message detection that would be ideal.

If this is not possible is there a way to turn the queue back on automatically so that it will continue processing the messages on the queue?

Cheers,
Peter.

Not sure if this helps your situation but you could do a SAVE TRANSACTION after you have received it off the queue.

Then, if whatever condition happens for it to rollback you can rollback to the save point, that way all work will be rolled back but the poison message is committed off the queue, you could also write the message to a table afetrwards, that way your queue will keep working and you can save the poison message to check them out later, and possibly put a notification trigger on the poison message table so that you know when they happen so you can check them out, hope that helps ?

Thanx

|||

In SQL Server 2005 is not possible to disable poison message support. The main problem with disabling poison message detection is that when something goes wrong and a real poison message comes into a production system, it takes the service down. We really encourage developers to avoid using rollbacks in activated procedures.

For instance, in your case, maybe is better to save the message being processed (e.g. into a table, or turn on message retention to use the queue itself w/o the need for a table) and then send yourself a timer message (BEGIN CONVERSATION TIMER with a small delay) and commit. When the timer fires a message is sent to your own service and you are going to be activated again. the activated procedure reacts to the timer message by looking up the saved message and trying to process it again. If it fails again, set a new timer ang commit. This way you can set up a more reasonable retry policy than rollback and retry immedeatly.

As about a way to turn the queue back on automatically, yes, there is a way. When a queue is deactivated, it can generate an event notification:

CREATE EVENT NOTIFICATION [QueueDisabled]

ON QUEUE [<queue name>]

FOR BROKER_QUEUE_DISABLED

TO SERVICE 'QueueDisabledServiceHandler', 'current database';

HTH,
~ Remus

|||thanx I'll look into it :)|||Remus how would I implement the automatic activation, it doesn't seem to work for me, but my q_task_detail_receive queue still gets disabled (and does not reenable)....

I have the following code for reactivation:
CREATE QUEUE q_task_detail_receive_disabled_handler
CREATE SERVICE s_task_detail_receive_disbaled_handler ON QUEUE q_task_detail_receive_disabled_handler

CREATE EVENT NOTIFICATION q_task_detail_receive_disabled
ON QUEUE q_task_detail_receive
FOR BROKER_QUEUE_DISABLED
TO SERVICE 's_task_detail_receive_disbaled_handler', 'current database';

create procedure p_enable_queues
as
begin
ALTER queue q_task_detail_receive WITH STATUS = ON
end
go

ALTER QUEUE q_task_detail_receive_disabled_handler
WITH ACTIVATION (
STATUS = ON, -- Activation turned on
PROCEDURE_NAME = p_enable_queues, -- The name of the proc to process messages for this queue
MAX_QUEUE_READERS = 1, -- The maximum number of copies of the proc to start
EXECUTE AS SELF -- Start the procedure as the user who created the queue.
);|||

Is the notification being delivered into q_task_disabled_handler?

You must RECEIVE from q_task_receive_disabled_handler in the p_enable_queues. This is a general rule for activated procedures, they must RECEIVE from the queue, even if they don't care about the message.

HTH,
~ Remus

Monday, March 12, 2012

Is it possible to "decorate" rendering?

This is a multi-part message in MIME format.
--=_NextPart_000_0024_01C4B3A9.116B5BF0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I was curious if was possible (or someone has at least attempted this) = to hook into the rendering mechanism. I'm interested especially in = being able to do this with charts.
--
Regards,
Tim Ellison, MCP
Ironworks Consulting, LLC
(m) 804.405.4874
--=_NextPart_000_0024_01C4B3A9.116B5BF0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&
I was curious if was possible (or = someone has at least attempted this) to hook into the rendering mechanism. I'm = interested especially in being able to do this with charts.
-- Regards,

Tim Ellison, MCPIronworks Consulting, LLC(m) 804.405.4874
--=_NextPart_000_0024_01C4B3A9.116B5BF0--That's not supported in RS 2000.
There will be options for doing this in charts in future releases.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"TIM ELLISON" <TimEllison@.direcway.com> wrote in message
news:O8Tsiq8sEHA.820@.TK2MSFTNGP12.phx.gbl...
I was curious if was possible (or someone has at least attempted this) to
hook into the rendering mechanism. I'm interested especially in being able
to do this with charts.
--
Regards,
Tim Ellison, MCP
Ironworks Consulting, LLC
(m) 804.405.4874|||Thanks. I was looking for a way to hook into the event model to do this but
actually came up with a neat way to "sort of" reproduce it with a finite
list (i.e., all columns known beforehand). I am definitely on the RS
bandwagon. I worked with it when it was bits and it was solid then. This
is perhaps one of the best V1 products I've worked with in my 12 years. The
documentation is even good :)..
--
Regards,
Tim Ellison, MCP
Ironworks Consulting, LLC
(m) 804.405.4874
"Robert Bruckner [MSFT]" <robruc@.online.microsoft.com> wrote in message
news:eUQnp$9sEHA.2316@.TK2MSFTNGP12.phx.gbl...
> That's not supported in RS 2000.
> There will be options for doing this in charts in future releases.
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> "TIM ELLISON" <TimEllison@.direcway.com> wrote in message
> news:O8Tsiq8sEHA.820@.TK2MSFTNGP12.phx.gbl...
> I was curious if was possible (or someone has at least attempted this) to
> hook into the rendering mechanism. I'm interested especially in being
able
> to do this with charts.
> --
> Regards,
> Tim Ellison, MCP
> Ironworks Consulting, LLC
> (m) 804.405.4874
>

Friday, March 9, 2012

Is it not possible to use UPDATE within a function?

Is it not possible to use UPDATE within a function? I get the following err
or message for the following function:
Evan
- - - - - - - - - - - - - -
Server: Msg 443, Level 16, State 2, Procedure fn_GetNextDataVersion, Line 10
Invalid use of 'UPDATE' within a function.
CREATE FUNCTION dbo.fn_GetNextDataVersion(@.tb_pk int)
RETURNS bigint
AS
BEGIN
DECLARE @.nextDataVersion bigint
SET @.nextDataVersion = 1 + (SELECT DataVersion FROM tb_TableList WHERE tb_pk
= @.tb_pk)
UPDATE tb_TableList SET DataVersion = @.nextDataVersion WHERE tb_pk = @.tb_pk
RETURN @.nextDataVersion
ENDDDL statements inside user-defined functions are only allowed on table
variables local to the function.
http://msdn.microsoft.com/library/d...>
_08_460j.asp
Objects cannot be created, altered or dropped if they exist outside the
scope of the user-defined function.
ML
http://milambda.blogspot.com/|||Table variables IF a table is created in that function?
"ML" <ML@.discussions.microsoft.com> wrote in message
news:B2FA2009-C30A-4DF4-B8CE-DC110EA8F77A@.microsoft.com...
> DDL statements inside user-defined functions are only allowed on table
> variables local to the function.
> http://msdn.microsoft.com/library/d...
es_08_460j.asp
> Objects cannot be created, altered or dropped if they exist outside the
> scope of the user-defined function.
>
> ML
> --
> http://milambda.blogspot.com/|||Yes. Locally. Variables are always local in SQL.
("This is a local shop. For local people." -- from 'A League of Gentlemen'
(BBC))
What is your goal exactly - there might be another way. If you share the
goal. :)
ML
http://milambda.blogspot.com/|||Create a function which gets a counter from a table and return the counter
WHILE updating the counter table to PLUS ONE
Evan
"ML" <ML@.discussions.microsoft.com> wrote in message
news:854D1DA1-3C1C-45B7-8A9B-E787B3856E55@.microsoft.com...
> Yes. Locally. Variables are always local in SQL.
>
> ("This is a local shop. For local people." -- from 'A League of Gentlemen'
> (BBC))
>
> What is your goal exactly - there might be another way. If you share the
> goal. :)
>
> ML
> --
> http://milambda.blogspot.com/|||for now i am working with a stored proc but a function is more elegant|||If you want to do it in a single step, then the procedure is the way to go.
ML
http://milambda.blogspot.com/