Viewing 15 posts - 16 through 30 (of 35 total)
Hi great qod!
Here's a tip:
Move the decimal point to the left by the negative number and then do a regular ROUND(d, 0). Applied to this it ends looking like...
August 23, 2010 at 9:38 pm
Good question!
Hugo Kornelis (8/9/2010)
August 9, 2010 at 2:24 am
Hi nmeseth,
OK first: you are right that it has everything to do with parent-child dims.
Quick answer - try the following: put .DATAMEMBER after members that belong to parent-child dimensions like...
July 31, 2010 at 8:14 am
I guess now would be a good time to point to a great post by PaulWhiteNz about UDFs and SCHEMABINDING which I can not find right now. My read performance...
July 23, 2010 at 11:40 am
I'm curious did you test and find that using non-persisted columns was faster than pre-calculating and storing all the permutations that you needed? (I guess it would probably depend on...
July 21, 2010 at 12:57 am
...And off it goes posted unfinished (sorry about that).
I think it might be a good idea to have a peer-review of ones Q and A before submitting a QoD to...
July 21, 2010 at 12:31 am
Now this doesn't hold true:
Will definately use more resources.
I am very pleased that UMG developer made a thorough explanation in the previous comment as it was exactly my...
July 21, 2010 at 12:08 am
This could make the Q "less confusing" but less real-life and interesting:
DECLARE @Testvar VARCHAR;
SET @Testvar = 'Red';
print @Testvar;
If only there was a remark of the collation set (as UMG developer...
July 18, 2010 at 3:11 pm
Jamie Longstreet-481950 (7/17/2010)
select * from(
select 'red'
union select 'red'
union select 'blue'
union select 'green'
union select 'yellow'
union select 'orange'
union select 'purple')x
where textfield like 'red' ...
July 18, 2010 at 12:56 pm
Nice question. I got it right cause I made an effort to examine all kinds of default parameters after encountering something similar. Not 100% sure but I think the rule...
July 18, 2010 at 12:51 pm
The following code was the cause of the error:
SELECT
...
cast(varchar(11),rxo.RX_NUMBER) + '-' +
cast(varchar(10),rxf.REFILL_NUMBER) AS 'RX and Refill',
...
Syntax for CAST:
CAST (expression AS data_type [ (length ) ] )
Syntax for CONVERT:
CONVERT (data_type...
July 17, 2010 at 2:26 am
Hugo Kornelis (7/7/2010)
I doubt it. Most people consider that cheating, and try to work the answer out for themselves.
I second that. Personally, giving the wrong answer highly motivates me to...
July 7, 2010 at 4:16 am
BOL: Transactions involving table variables last only for the duration of an update on the table variable. Therefore...
Hi all!
Maybe the following code example brings some light on the above statement....
July 7, 2010 at 3:51 am
If I need to quickly disable all triggers in the database then I use disable trigger syntax to take care of all tables and views and then append disable trigger...
July 2, 2010 at 12:30 am
Viewing 15 posts - 16 through 30 (of 35 total)