Viewing 15 posts - 3,301 through 3,315 (of 3,489 total)
Since the SQL to return the records you want is really simple, I would just join this...
SELECT r.jobnumber
re.code
FROM repheader r
INNER JOIN repairtype re ON re.code = r.code
to your other query....
September 22, 2013 at 4:08 pm
use a cartesian product. (two tables in the query, no join). One has People, one has Events. No join means the tables get multiplied. Filter as...
September 22, 2013 at 10:40 am
You're missing the "Add 14 hours" part...
=DateAdd("h",14,DateAdd("d",-1,Today))
September 21, 2013 at 11:12 pm
I'll give you that I'm not an SSIS guy, but if the format is always the same, you should be able to create a variable for the filename, then strip...
September 21, 2013 at 8:51 pm
absolutely reeks of a homework assignment.
If you can group by half hours, then you're golden. Try something like getting the number of half hours since midnight, and then grouping...
September 21, 2013 at 2:11 pm
No. I was leaving out a bunch of stuff. It was the bare bones of a stored procedure. One of the differences between a view and a...
September 20, 2013 at 9:51 pm
Are the pick lists for 3 possible values really necessary? Simplify, then you're done.
You could do this...
SELECT bioID
, FirstName
, LastName
, Sex
, Status
FROM Bio INNER JOIN Sex ON Bio.SexID=Sex.SexID
INNER JOIN [Status]
ON...
September 20, 2013 at 9:02 pm
Here's the whole function and stored procedure declaration etc, just in case someone else has this fun.
ALTER FUNCTION [dbo].[fn_SplitStringList]
(
@StringList VARCHAR(MAX)
)
RETURNS @TableList TABLE( StringLiteral VARCHAR(128))
AS
BEGIN
DECLARE @StartPointer INT, @EndPointer INT
SELECT...
September 18, 2013 at 5:42 am
Oh Super cool!!! Works a CHAMP!!! Definitely a good trick to learn! Thanks!
September 17, 2013 at 9:01 pm
In case any other Reporting Services rookie comes across this, here's a really good article walking you through a solution and explaining what works and what doesn't and why.
http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/
(apologies to...
September 16, 2013 at 8:48 pm
Oh... must have missed that very subtle hint: TABLE-valued function. (So you query it, because it's a ... well, a TABLE!
Thanks!
September 16, 2013 at 10:26 am
I'm trying (in vain) to use the DelimitedSplit8K function to pass a delimited list to my stored procedure to filter my underlying resultset
Here's my SQL
CREATE PROCEDURE BuildDatesForReport
( @StartDate ...
September 15, 2013 at 10:17 pm
Hard to say given the limited information. One thing would be to filter as much out of the dataset as early as possible (in the stored procedure, if possible)....
September 15, 2013 at 12:33 pm
Erland,
That's what I was originally thinking - if filtering in SSRS only removes a few records, that's one thing, but if it removes potentially millions - why not remove them...
September 15, 2013 at 9:47 am
Okay, I think I have it now... one option is to filter all the "required" and single-value parameters in the stored procedure, and then filter the multi-value parameters in the...
September 13, 2013 at 10:04 pm
Viewing 15 posts - 3,301 through 3,315 (of 3,489 total)