Viewing 15 posts - 661 through 675 (of 1,162 total)
Being a bit pedantic, but I've read that article before and some of the arguments against also apply to the default READ COMMITTED isolation level. In either case you can...
September 14, 2011 at 7:03 am
You'll want to take a look at isolation levels. If dirty reads shouldn't be allowed (I agree with you that you need to be extremely cautious with them), but locks...
September 14, 2011 at 6:13 am
I'm no expert on partitioning, but there's a difference between a clustered index and a Primary Key. I don't believe you can use DROP_EXISTING to drop a clustered PK (which...
September 14, 2011 at 4:57 am
Nope. You have to drop and recreate it (same if you want to change the definition of a computed column).
If you need to maintain the column order (which you...
September 14, 2011 at 4:18 am
It'll display once for every distinct group of your group by clause as with any other GROUP BY...
In the row that you believe is duplicated, one or more of the...
September 13, 2011 at 8:46 am
You would have to add a dummy ROW_NUMBER type column and pivot this (either through PIVOT or a "crosstab").
Would be interesting to get some understanding of why you need...
September 13, 2011 at 8:14 am
Your requirement isn't very clear from your sample data (it would help if you posted DDL, insert statements etc.) Are you saying you need an unlimited amount of columns (one...
September 13, 2011 at 7:08 am
September 13, 2011 at 5:47 am
mustapha-721538 (9/12/2011)
One issue is solved now I´m displaying 0 instead of NULL in all the columns except the total column it still displays NULL when at...
September 12, 2011 at 6:57 am
You just need to wrap ISNULL's around your final SELECT - if there are no rows that match the PIVOT criteria, it'll resolve to NULL:
SELECT MaingroupNo, MainGroupName, ArticleNo, Name,
ISNULL([1],0) AS...
September 12, 2011 at 6:38 am
Why do your variables already have values that you want to NULL? Surely they should be NULL before the assignment.
Whilst using an aggregate function will likely work for numeric data...
September 12, 2011 at 3:29 am
I think you're missing the OP's point.
The reason for the problem is that the set command is explicitly setting the variable to a result set that evaluates to NULL...
September 12, 2011 at 2:14 am
Yep, definitely happens on a couple of different BIDS environments
September 9, 2011 at 10:19 am
Ninja's_RGR'us (9/9/2011)
See the semi-column after begin tran
BEGIN TRAN;
--no EXECUTE
sp_who2
ROLLBACK
/*
Msg 102, Level 15, State 1, Line 4
Incorrect...
September 9, 2011 at 9:24 am
I believe it's accurate, but not transactionally consistent, so you could potentially see counts that were later rolled back.
In reality, I don't see many cases where that would present...
September 9, 2011 at 9:17 am
Viewing 15 posts - 661 through 675 (of 1,162 total)