Viewing 15 posts - 166 through 180 (of 201 total)
I added all code needed before, all i want to do now is instead of creating a temporary table and fill it with inserted record, just pass the inserted record...
October 7, 2010 at 3:39 am
syscolumns,sysindexes etc. is not in my logic but i was afraid they get blocked by creation of temporary tables which will kill performance.
Anyways i am thinking of changing logic totally,...
October 7, 2010 at 3:09 am
Hi David,
I am really sorry for my late reply but i was traveling away with limited internet access.
I attached the full scripts for recreating the scenario.
Pls note that there is...
October 6, 2010 at 4:03 pm
Still didnt try that but i will for sure as it will minimize access to system table.
Just was wonderring why is that happening, do u think reason for this...
October 5, 2010 at 4:03 am
i tried blocked process report unfortunately it didnt capture anything in profiler even after changing blocked process report in sp_configure to 1000.
i added the lock timeout event though
and it showed...
October 5, 2010 at 3:49 am
Already done that, and i see the following lock when i try to open tempdb properties
also i checked the Activity Monitor tool and i see the following wait
Wait Type:LCK_M_S
Resource :Key...
October 5, 2010 at 2:26 am
Yes, but still the locking issue which is very weird and cant find the reason for it.
Regards
Nader
October 5, 2010 at 2:07 am
Man this is amuch better solution , thank u very much.
Nader
October 5, 2010 at 1:07 am
thanks for ur help
thats what i did pls tell me if am wrong
for trigger
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [TR_Audit_Trail_Insert_Accounting_Period] ON [Accounting_Period] FOR INSERT AS
SET NOCOUNT ON;
CREATE TABLE #ins([ID] [int]...
October 4, 2010 at 6:33 am
Here is the trigger code
Create TRIGGER [TR_Audit_Trail_Insert_TableName] ON TableName FOR INSERT AS
SET NOCOUNT ON;
SELECT * INTO #ins FROM INSERTED;
EXEC SP_Audit_Trail_Transaction_Insert 'TableName';
and this is the SP called from within the...
October 4, 2010 at 5:51 am
Thanks for the link.
But does that mean that SQL server will not be able to access indexes and temporary tables , till the lock caused by the creation of the...
October 4, 2010 at 5:39 am
The error is:
Lock request time out exceeded error:1222
Thanks
October 4, 2010 at 4:57 am
Thanks for your reply.
1. Locking tempdb (is whole db locked) meaning no one can access table indexes.
NO.Locking mechanism work on row level --> page level ---> then table level.no on...
October 4, 2010 at 2:23 am
Grant Fritchey (5/26/2010)
May 26, 2010 at 7:04 am
Thanks for ur reply
May 26, 2010 at 6:33 am
Viewing 15 posts - 166 through 180 (of 201 total)