Viewing 15 posts - 766 through 780 (of 1,957 total)
You need another list variable, like @cols, but built with the ISNULL in it.
So, for example if @cols contains:
[col1],[col2]
Then @selectCols needs something like:
ISNULL([col1],'') as [col1], ISNULL([col2],'') as [col2]
and then use...
July 31, 2013 at 1:22 pm
mcummings (7/31/2013)
adding sorels.fpartno = aritem.fpart cuts it down from 3075 to 1204but there's no fitem in sorels
As I said, WE are guessing - you shouldn't be .
If you don't understand...
July 31, 2013 at 1:18 pm
You haven't supplied enough information, but you just need to figure out the correct join.
My guess is that because sorels has costs in it that they might relate to items...
July 31, 2013 at 1:08 pm
I only use SSMS 2012 - do you have a build for that?
Do you have any screen shots or description of what it does?
July 30, 2013 at 2:54 am
If you really want to stop bulk updates from triggering Lowell's code (please use his code - yours is broken)
...Just put
IF @@ROWCOUNT>1 RETURN
at the start of the trigger...
July 29, 2013 at 9:12 am
Funnily enough I submitted a QotD recently covering a very similar problem, so you will all get your points on that one...
As far as I understand it, the cause of...
July 29, 2013 at 9:07 am
I would guess that a rendering problem like that will be due to IE9.
Have you tried a different browser and/or compatibility mode toggling?
July 22, 2013 at 7:18 pm
dwain.c (7/22/2013)
L' Eomot Inversé (7/22/2013)
Sean Lange (7/22/2013)
Gosh Tom, how do you really feel about that article??? :w00t:
Just as described, but if I'd realised who wrote it I would have made...
July 22, 2013 at 7:14 pm
Hi Tobar,
If you would like to try out an addin for 2012, send me a PM with your email address.
July 21, 2013 at 5:21 pm
If you post your query, it will be much easier to help.
July 20, 2013 at 10:14 am
dyarwood (7/19/2013)
Thank you!I thought I tried using an inline case statement earlier but yours works 😉
You're welcome.
July 19, 2013 at 6:01 pm
SELECT control_id, COUNT(*) AS total_count, SUM(CASE WHEN action_details like '%Fail%' THEN 1 ELSE 0 END) as error_count
FROM history
group by control_id order by control_id
July 19, 2013 at 5:41 pm
Tobar (7/18/2013)
July 19, 2013 at 5:38 pm
I don't believe you can use GETDATE() in that way as a default parameter value.
Try setting a default of NULL and replacing that NULL in your code with GETDATE()
July 17, 2013 at 6:22 pm
It helps if you provide your data in a re-usable format , such as this:
with data(ParentItem,ChildItem,Qty)
as
(
select '2338-87468-00', '62338-77961-20', '45.333' union all
select '2338-87468-00', '62338-77961-18', '45.333' union all
select '2338-87468-00',...
July 16, 2013 at 3:50 pm
Viewing 15 posts - 766 through 780 (of 1,957 total)