Viewing 15 posts - 21,706 through 21,720 (of 26,484 total)
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
Go to Books Online (BOL) and lookup COLUMNS_UPDATED and UPDATE functions. That is where I'd start. let us know if you have any additional questions after reading about...
March 31, 2009 at 9:29 am
Everyone is different. What is comfortable for one person may not be for someone else. We own a GMC Envoy, a Suzuki Forenza, and a Ford Focus. ...
March 31, 2009 at 8:19 am
Since you haven't provided us with the DDL (CREATE TABLE statement) for the table, the code you are running, or sample data, its hard to say for sure. I...
March 31, 2009 at 7:54 am
RBarryYoung (3/31/2009)
Lynn Pettis (3/30/2009)
RBarryYoung (3/30/2009)
Hey, Lynn got to use HAVING! Wohoo! 😛I think that we ought to award a prize anytime someone gets to use HAVING legitimately. 😀
You...
March 31, 2009 at 7:50 am
Double posted. Please reply here.
March 31, 2009 at 6:32 am
Viewing 15 posts - 21,706 through 21,720 (of 26,484 total)