Viewing 15 posts - 16 through 30 (of 59 total)
sure but now i came to my room. I will post it tomorrow, code is in office
Regards
Guru
March 23, 2012 at 9:55 am
Hi Sean Lange,
I had alter this sp's. When we added or remove columns in master tables it will automatically
altered in archive / history tables and also alter the triggers...
March 23, 2012 at 8:41 am
declare @STR as nvarchar(max),@SourceSchema nvarchar(50),@SourceName nvarchar(50)
select @SourceSchema=RTRIM(LTRIM(SUBSTRING('Alter table dbo.TableA add test int',1,CHARINDEX('.','Alter table dbo.TableA add test int',0)-1)))
Select @SourceSchema=element from splitarray(@SourceSchema,'table ')
Print @SourceSchema
select @SourceName=...
March 23, 2012 at 4:49 am
Thank you MysteryJimbo,
So its better to use Sp's for inserting into audit tables.
Regards
Guru
March 23, 2012 at 4:30 am
Hi Andy,
Every transaction table have trigger. And it will affect only one table (for audit purpose)
Create TRIGGER [dbo].[tra]
ON [dbo].[a]
FOR INSERT, UPDATE, DELETE
AS
BEGIN
SET NOCOUNT ON;
DECLARE @inserted int = (SELECT COUNT(1) FROM...
March 23, 2012 at 4:26 am
Hi,Sean Lange
I gone through that Sp's. I had made some alteration in the Sp "sp_StandardCDC_enable_table". And its working fine. But Need some more alteration in that SP. If we add...
March 23, 2012 at 12:06 am
Hi Eugene Elutin ,Sean Lange
I got one link that enables CDC in Standard edition. I need to try that too.
http://standardeditioncdc.codeplex.com/
Regards
Guru
March 22, 2012 at 8:46 am
Yes Sean Lange
Each and every action . Exactly what we get in CDC.
Delete Statement
Insert Statement
...
March 22, 2012 at 8:33 am
Hi Sean Lange,
I think i can't use Triggers. Because, The values of Master table will be updated every time a record is inserted / updated / deleted in detail table.....
March 22, 2012 at 8:19 am
Hi Sean Lange,
Thank you,
I tried for CDC but its working in enterprise edition only. I'm having standard edition
Regards
Guru
March 22, 2012 at 8:00 am
select val.day,SUM(V.data) from val V join val Val on V.day<=val.day group by val.day,val.day
Regards
Guru
March 21, 2012 at 3:27 am
Viewing 15 posts - 16 through 30 (of 59 total)