Viewing 15 posts - 6,211 through 6,225 (of 7,614 total)
NO, you do not.
You must at least RECONFIGURE, and maybe RECONFIGURE WITH OVERRIDE, so just use the latter, as that will cover all cases.
Note that it may take SQL a...
March 20, 2014 at 3:13 pm
I prefer using XACT_STATE() rather than @@TRANCOUNT, as it indicates when you must use ROLLBACK rather than COMMIT.
Edit: Of course XACT_STATE() can't tell you whether you have nested trans, but...
March 18, 2014 at 4:47 pm
I think you were very close:
where
(slord <> 249486 or slline not in (1,3,5))
March 18, 2014 at 3:52 pm
Lynn Pettis (3/14/2014)
vamsikrishnacheruku (3/10/2014)
1/jan/2014, monday
1/feb/2014,thrusday
...
March 14, 2014 at 10:34 pm
Not a big deal in this case, but I don't like generating hundreds of values when I need only 12 :-). I think code below does less work and...
March 14, 2014 at 4:43 pm
rka (3/6/2014)
March 6, 2014 at 5:41 pm
You'd have to use an INSTEAD OF trigger, naturally. Those are a pain to write and maintain, since you must write code yourself to complete the modification -- DELETE...
March 6, 2014 at 5:34 pm
Yes, the logging especially will be take a lot of time.
But, it will be much more bearable if:
1) the child tables are clustered properly (as usual!), i.e., starting with...
March 6, 2014 at 5:28 pm
I'd definitely add a bit column to the table. Your data and your statements seem contradictory, but I think when a new row is added that becomes current, you...
March 6, 2014 at 5:11 pm
MyDoggieJessie (3/6/2014)
DECLARE @Err INTBEGIN TRY
BEGIN TRANSACTION
<A whole bunch...
March 6, 2014 at 5:06 pm
If the original amount is odd, add 1 cent to the first joint account holder. That will work regardless of the number of joint account holders:
select cast(original_amount/2 +
...
March 6, 2014 at 4:33 pm
The core thing is not to skimp on the design. It may look 'leaner' to just leave out some relationship tables, or to combine some relationship tables, but doing...
March 5, 2014 at 10:11 am
halifaxdal (2/21/2014)
ScottPletcher (2/21/2014)
SELECT
Owner, CAST(YEAR(Quarter) AS char(4)) + 'Q' + CAST(DATENAME(QUARTER,...
February 24, 2014 at 8:29 am
I, too, got different totals; mine add up to 82, the number of sample rows of data.
SELECT
Owner, CAST(YEAR(Quarter) AS char(4)) + 'Q' + CAST(DATENAME(QUARTER, Quarter) AS...
February 21, 2014 at 4:50 pm
Maybe this?!:
SELECT
t1.DOCUMENT_NO,
RTRIM(CAST(t1."ENVIRONMENT_CD" AS VARCHAR(5))) + '*' + RTRIM(CAST(t1."ORDER_NO" AS VARCHAR(25)))
+ CASE WHEN TEST_REPORTING_MATERIAL_SID__COUNT > 1 THEN...
February 20, 2014 at 3:11 pm
Viewing 15 posts - 6,211 through 6,225 (of 7,614 total)