Viewing 15 posts - 21,706 through 21,720 (of 26,490 total)
RJ (3/31/2009)
March 31, 2009 at 4:18 pm
RJ (3/31/2009)
March 31, 2009 at 3:51 pm
JJ B (3/31/2009)
March 31, 2009 at 3:31 pm
Does this give you what you want? Realize that this is going to be a large insert query for your actual table.
insert dbo.audit_abc (col1,col2,col3,col4,col5,audittype)
select
d.col1,
...
March 31, 2009 at 3:02 pm
JJ B (3/31/2009)
March 31, 2009 at 2:51 pm
SELECT
*
FROM
Table1
LEFT OUTER JOIN Table2
ON (Table1.GroupID = Table2.GroupID
...
March 31, 2009 at 2:27 pm
GSquared (3/31/2009)
JJ B (3/31/2009)
March 31, 2009 at 2:21 pm
steve.neumann (3/31/2009)
Would spell/grammar checking be too much to ask? Every sentence doesn't need 3 commas...
I don't see no commas, just ellipses (...).
March 31, 2009 at 2:18 pm
RJ (3/31/2009)
insert dbo.audit_abc (col1,col2,col3,col4,col5,audittype)
select d.col1,d.col2,d.col2,d.col4,d.col5,
case
when i.col1 is null then 'delete'
else 'update'
end
from deleted d
left outer join inserted i
on d.col1 = i.col1
where col2<>col2
and col5<>col5
In this query except col3...
March 31, 2009 at 2:15 pm
To clarify, if col2 and col3 are updated, don't audit regardless if any other columns are updated? Or, if only col2 and/or col3 are updated don't audit? Sorry,...
March 31, 2009 at 1:07 pm
It would help if you could provide the DDL (CREATE TABLE statement) for the table, some sample data, and the expected results based on the sample data.
March 31, 2009 at 1:04 pm
jfox (3/31/2009)
March 31, 2009 at 10:46 am
The only way to know is to test the different options and check the statistic io, statistics time, executions plans, and anything else people may suggest. between them.
I'd recommend a...
March 31, 2009 at 10:39 am
Viewing 15 posts - 21,706 through 21,720 (of 26,490 total)