Tuesday, March 20, 2012
Circular reference
steps and the last step call first step again?Can you give a specific example of what you mean by work? Some recursive
operations (like a trigger) can only be nested 16 levels deep.
Brian
"Mariano Arias" <Mariano Arias@.discussions.microsoft.com> wrote in message
news:96505317-0C08-4A2F-9DCA-CA1FE75A3F30@.microsoft.com...
> I would like to know if there is a problem when I create a Work with
several steps and the last step call first step again?
Circular reference
Can you give a specific example of what you mean by work? Some recursive
operations (like a trigger) can only be nested 16 levels deep.
Brian
"Mariano Arias" <Mariano Arias@.discussions.microsoft.com> wrote in message
news:96505317-0C08-4A2F-9DCA-CA1FE75A3F30@.microsoft.com...
> I would like to know if there is a problem when I create a Work with
several steps and the last step call first step again?
Monday, March 19, 2012
Choosing field from same row based on an aggregate.
I have a table with two columns. Let's call them Value and Hour. Looks like this:
Value Hour
4 9:00
3 11:00
6 2:00
2 12:00
I want to be able to make a total line and give the Max(Value) and the time it happened. What would be the function to get the Hour value based on the Max(Value). Just for example, for this one it would be Max(Value) = 6 and it's Hour would be 2:00.
Hi,
what about getting this right back from the database system with a query ?
SELECT Hour,MAX(Value)
From SomeTable
Group by Hour
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
|||I'm actually getting my data from a Custom Data Processing extension. I would need a way to get it with a function straight out of the resultant dataset.|||Can't you make a calculated field with the expression = Max(Value)?
That can be put in the footer of the table (which will display '6' in this example). To get the hour belonging to the value with an expression ...I'm not so sure how to do that ... maybe with a switch expression, based on the textbox where you show the MAX(Value)?
Friday, February 10, 2012
check the status of SQL Agent
Hi all
In my project, i need to call some jobs to finish some things. But sometimes, Sql Agent is not run. I need to check the status of it. Are there some functions or other ways to check it. if you know, please response me.
thank you !
You can use this scriptdeclare @.service nvarchar(100)
select @.service = case when charindex('\',@.@.servername)>0
then N'SQLAgent$'+@.@.servicename
else N'SQLSERVERAGENT' end
exec master..xp_servicecontrol N'QUERYSTATE', @.service|||Great answer, thank you !