Viewing 15 posts - 811 through 825 (of 1,957 total)
Options...SQL Server Object Browser...Scripting...Script Triggers = True
July 1, 2013 at 11:31 am
I can't see anything obviously wrong with the logic.
What I would do next is put two textboxes on the report, one for
=(
iif(Sum(Fields!TotalInvPrimaryPart.Value, "PartNumber")=0
,Sum(Fields!TotalInv.Value, "PartNumber")+first(Fields!TotalInvPrim.Value, "PartNumber")
,Sum(Fields!TotalInv.Value, "PartNumber"))
+
iif(Sum(Fields!QTYonOrderPrimaryPart.Value, "PartNumber")=0
,Sum(Fields!TotalQTYonOrder.Value, "PartNumber")+first(Fields!QTYonOrderPrim.Value, "PartNumber")
,Sum(Fields!TotalQTYonOrder.Value, "PartNumber"))
+
iif(Sum(Fields!QTYonPMRPrimaryPart.Value,...
June 30, 2013 at 4:50 pm
Ideally you would have suitable exclusions in your where clause to avoid procesing errors.
You cannot trap errors on one select in a UNION, but you could insert the results of...
June 27, 2013 at 1:52 pm
the step will fail immediately when the second proc errors if they are all in one step, but if you have each proc in it's own step, you can configure...
June 27, 2013 at 1:50 pm
if you are filtering in the SQL statement, why not just use an IF and have two queries, one for each filter?
June 27, 2013 at 1:47 pm
HildaJ (6/27/2013)
Thank you for the suggestion, I tried and it works pretty good.Pretty clever.
Glad it helped, and thanks for the feedback 🙂
June 27, 2013 at 1:37 pm
You have put quotes (") round the expressions, making them strings...
June 27, 2013 at 12:18 pm
Instead of adding a row inside the group, try this:
Start with a Table with two columns, one for your "group" value and one for the aggregate (sum):
Select both cells on...
June 26, 2013 at 5:09 pm
Hi Lowell,
Thanks for that - it is a reasonable work-around until those spoon-heads fix SSMS back to how it used to work...
Unfortunately, I can't really make use of that as...
June 26, 2013 at 7:24 am
AndrewSQLDBA (6/26/2013)
Thanks Mister.MagooThat is it. Perfect.
I feel silly now, I looked in other places in the options, but not there.
Thanks so very much
Andrew SQLDBA
No worries, now if you can find...
June 26, 2013 at 4:47 am
Here is an iTVF for it...
CREATE FUNCTION SplitWithDelimiter (@MyString VARCHAR(200), @MaxLength INT, @Delimiter CHAR(1), @Breakers varchar(256))
RETURNS TABLE
WITH SCHEMABINDING
AS
RETURN
SELECT substring(base.value, 1, Pos1) + @Delimiter + substring(base.value, Pos1 + 1, Pos2 -...
June 25, 2013 at 5:56 pm
gmamata7 (6/21/2013)
When an application accesses this database, it should show the future date. But the rest of the database should show...
June 22, 2013 at 7:25 am
Viewing 15 posts - 811 through 825 (of 1,957 total)