Click here to Skip to main content
15,902,112 members
Home / Discussions / Database
   

Database

 
AnswerRe: Create Trigger Pin
Mohsiul Haque21-May-10 22:48
Mohsiul Haque21-May-10 22:48 
GeneralRe: Create Trigger Pin
zafax_27-May-10 6:11
zafax_27-May-10 6:11 
AnswerRe: Create Trigger Pin
Mycroft Holmes23-May-10 4:30
professionalMycroft Holmes23-May-10 4:30 
GeneralRe: Create Trigger Pin
zafax_27-May-10 6:12
zafax_27-May-10 6:12 
QuestionMSSQL query taking too long Pin
Mike Osbahr21-May-10 5:16
Mike Osbahr21-May-10 5:16 
AnswerRe: MSSQL query taking too long Pin
Blue_Boy21-May-10 5:46
Blue_Boy21-May-10 5:46 
AnswerRe: MSSQL query taking too long Pin
David Mujica21-May-10 5:49
David Mujica21-May-10 5:49 
GeneralRe: MSSQL query taking too long Pin
Mike Osbahr25-May-10 3:48
Mike Osbahr25-May-10 3:48 
I followed the steps in your reply. Nothing looks to be wrong with the query. It even appears to execute normally in Management Studio. When I execute it in the code on the client though it takes about three seconds.

The client app has been running successfully for about four years. Now it is getting bogged down by two queries. Both do field sums. Any ideas what could change on a server or connection that would slow down a SUM operation?

This is a close approximation of the query that is taking so long:

SELECT SUM(WorkSecs) as WorkTime, SUM(RunSecs) as RunTime
FROM tblData WHERE Machine = 1 and Operator = 1
Thanx,
>>>-----> MikeO

QuestionHow to create Data Archiving in SQL Server 2005 Pin
Raghu_M21-May-10 5:15
Raghu_M21-May-10 5:15 
AnswerRe: How to create Data Archiving in SQL Server 2005 Pin
Mohsiul Haque21-May-10 22:52
Mohsiul Haque21-May-10 22:52 
AnswerRe: How to create Data Archiving in SQL Server 2005 Pin
Shameel23-May-10 5:11
professionalShameel23-May-10 5:11 
AnswerRe: How to create Data Archiving in SQL Server 2005 Pin
Mycroft Holmes23-May-10 11:15
professionalMycroft Holmes23-May-10 11:15 
Questionan insert query with return value Pin
reza assar20-May-10 22:53
reza assar20-May-10 22:53 
AnswerRe: an insert query with return value Pin
Johan Hakkesteegt21-May-10 0:50
Johan Hakkesteegt21-May-10 0:50 
GeneralRe: an insert query with return value Pin
J4amieC21-May-10 1:28
J4amieC21-May-10 1:28 
GeneralRe: an insert query with return value Pin
Luc Pattyn21-May-10 3:13
sitebuilderLuc Pattyn21-May-10 3:13 
GeneralRe: an insert query with return value Pin
Johan Hakkesteegt21-May-10 3:15
Johan Hakkesteegt21-May-10 3:15 
AnswerRe: an insert query with return value Pin
Tripathi Swati21-May-10 0:52
Tripathi Swati21-May-10 0:52 
GeneralRe: an insert query with return value Pin
J4amieC21-May-10 1:31
J4amieC21-May-10 1:31 
AnswerRe: an insert query with return value Pin
J4amieC21-May-10 1:31
J4amieC21-May-10 1:31 
GeneralRe: an insert query with return value Pin
Luc Pattyn21-May-10 3:16
sitebuilderLuc Pattyn21-May-10 3:16 
GeneralRe: an insert query with return value Pin
Johan Hakkesteegt21-May-10 3:20
Johan Hakkesteegt21-May-10 3:20 
GeneralRe: an insert query with return value Pin
riced21-May-10 4:29
riced21-May-10 4:29 
GeneralRe: an insert query with return value Pin
Luc Pattyn21-May-10 4:30
sitebuilderLuc Pattyn21-May-10 4:30 
GeneralRe: an insert query with return value Pin
reza assar21-May-10 7:32
reza assar21-May-10 7:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.