Viewing 15 posts - 16 through 30 (of 46 total)
As requested i have attached the execution plan, can you please check it and let me know what should be done so that bookmarks should be removed
Regards,
NAveen
April 28, 2011 at 6:06 am
index definitin:
I_CalculatedEndTimestamp_Eventnonclustered located on PRIMARYCalculatedEndTimestamp
I1_Eventnonclustered located on PRIMARYRMType_FK, MessageType_FK, StartTimestamp
I2_Eventnonclustered located on PRIMARYStartTimestamp(-), Number_FK, MessageType_FK
PK_Eventclustered, unique, primary key located on PRIMARYEvent_PK
U1_Eventnonclustered, unique located on PRIMARYNumber_FK, StartTimestamp, CEN, RMType_FK, MessageType_FK, Floor
table...
April 28, 2011 at 4:59 am
Please find the trace of the query which i posted
SET STATISTICS PROFILE ON SQL:StmtCompleted0000
SELECT E.StartTimestamp FROM eventrelevant_v E ...
April 28, 2011 at 4:55 am
There is a view defined as below
CREATE VIEW TotalStats_FloorByFloor_v
AS
SELECT
EquipmentNumber_FK,
RemoteMonitoringType_FK,
StatisticsStartTime,
StatisticsEndTime,
starts,
door_operations,
relevellings,
door_reopenings_by_lightcurtain_cuts,
nudgings,
door_reopenings_by_safety_edge,
door_reopenings_by_unknown_reason,
bad_stops,
FloorNbr
FROM
(
SELECT
EquipmentNumber_FK,
RemoteMonitoringType_FK,
MIN(StatisticsStartTime) AS StatisticsStartTime,
MAX(StatisticsEndTime) AS...
April 13, 2011 at 12:28 am
when tried with this getting the error Incorrect syntax near '+'.
ANDMRC.CreateDate > '''+convert(varchar(20),@startdate)''' and mrc.createdate < '''+convert(varchar(20),@enddate)'''
April 7, 2011 at 7:41 am
ANDMRC.CreateDate> '+convert(varchar(20),@startdate)' and mrc.createdate< '+convert(varchar(20),@enddate)'
I tried with abovebut sillit fails
April 7, 2011 at 7:21 am
As sugested, its good to have identity column, but the design here is it is having a 2 table design. ie for events, there are 2 tables event_1 and...
November 19, 2010 at 12:47 am
when the application is tryting to call this procedure from the application, getting the below error:
failed to get next key value from stored procedure for table:Event
It looks like when something...
November 18, 2010 at 10:26 pm
Thanks for your information, I dont want to change the current desing. Keeping the current design is there any way sothat blockings can be eliminated. Is it good idea to...
November 18, 2010 at 5:18 am
Lowell, Same problem I am facing when trying to insert 1 month data I am getting duplicate records. Can you tell me how to overcome this?
Naveen
September 3, 2010 at 4:16 am
Might be we can use identity but not supposed to use this now. The code for getting next key is:
ALTER PROCEDURE [dbo].[GetNextKeyValue_p]
----------------------------------------------------------------------------------
-- Version Date: 22.03.2006
-- Copyright © 2006...
September 3, 2010 at 3:52 am
The problem I am facing is:
EventID is the primary key in the EVENT table. Whenever an event occurs, getnextkey is generated and an next eventid is generated from getnextkey...
September 3, 2010 at 3:48 am
how to clear the deadlocks, is it required to restart the sql server services or is anyother method.
August 17, 2010 at 6:37 am
Viewing 15 posts - 16 through 30 (of 46 total)