SQL Modal Problem

Aug 19, 2004

Hi,
I have a form that just displays some data regarding web logs. My SQL is not too hot so i hope somebody can point me in the right direction. I have a DB table that amongst others has a server name and an execution times column. There are thousands of records each for every second within a particular week. I basically want to be able to select for each distinct server name the most popular execution time. For example if for server 'A' there are 5 records with an execution time of 0.5secs and 4 records with an execution time of 0.35secs then i want to return a record with the execution time of 0.5secs. However i want to be able to do this for every different occurrence of server name in my table. So i want to return records for server name 'B' and server name 'C' etc.

Here is the SQL i have at the moment but it only returns the most popular or most occurring execution time in the table not the most popular execution time for EVERY server name in my table. For example

Server_Name | Execution_Time
-------------------------------------
A | 0.5


<code>
SELECT DISTINCT instance, exec_time AS modal
FROM Llserverlogs
GROUP BY instance, exec_time
HAVING (COUNT(*) >= ALL
(SELECT COUNT(*)
FROM llserverlogs
GROUP BY instance, exec_time))
</code>

Hope somebody can help and thanks in davance for the help.

View 14 Replies


ADVERTISEMENT

Modal Window Is Active Cannot Shut VS

Nov 26, 2007

Hello,


While tryign to edit the XML for the rdl , i am stuck it will not allow me to edit and i have to kill the devenv process and open vs again.

I looked through some of the threads and tried apply KB 936971 Hot Fix and I am running into the following error.

The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch."


Did any one come across this. Any assistance would be greatly appreciated

Thanks,
SqlNew

View 1 Replies View Related

Modal Dialog Is Active Error

Mar 5, 2008

has anyone encountered the "microsoft visual studio cannot shut down because a modal dialog is active. close the active dialog and try again." error when shutting down.

i have been getting that every once and awhile, and do not see any open dialog windows that need to be closed, and i end up having to end-task on my visual studio session.

does anyone know what is causing this error and how to avoid it?

thanks a bunch!

-dk

View 5 Replies View Related

Q936971 / Modal Dialog Bug / Where To Download Fix?

Oct 18, 2007

I can't download this fix due to a block on FTM downloads and it is driving me round the bend.

Does anyone know where it is possible to get hold of the fix?

Was this included in SP1 (vs.net)?

View 1 Replies View Related

How To Persist Title Of 'modal Dialog' During Postback

Oct 18, 2007

Hi,

Please give me some idea to persist or set title of modal dialog during postback.

The title of modal dialog is going lost whenever postback happen on modal dialog.

document.title is not working after postback.


Thanks,
Sandeep, India

View 1 Replies View Related

Microsoft Visual Studio Cannot Shut Down Because A Modal Dialog Is Active

Nov 17, 2006

if i get this message one more time I am going to put my fist through my monitor

View 114 Replies View Related

Microsoft Visual Studio Cannot Shut Down Because A Modal Dialog Is Active - Any Updates?

Jan 22, 2008

I installed the hotfix available at support.microsoft.com/kb/936971 and even rebooted the server, but I am still getting the error. I am working on a Windows 2003 server with SQL Server 2005 (and reporting services). I am not trying to publish any reports using SSRS. I'm just working on designs and saving them. Any help for this at this point?
Leigh

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved