Viewing 15 posts - 15,256 through 15,270 (of 18,923 total)
You can move that select with the parameters in a function.
CREATE FUNCTION dbo.fnName (params list)
RETURNS TABLE
AS
RETURN Select statement with params
GO
July 11, 2005 at 8:21 pm
The only way to track all those is to start a trace using the profiler. This will allow you to get all that information.
The downside is that this can...
July 11, 2005 at 7:48 pm
So is that when you'll start pumping out 200 posts/day or that was just a big joke
?
July 11, 2005 at 7:38 pm
Do you need data spanned on multiple days between a small range of hours/minutes for each day (from 2005/01/01 to 2005/01/03 AND only from 12:30 to 15:55 for each day)...
July 11, 2005 at 7:37 pm
Little error in my solution... the nulls should be OUTSIDE the cast
.
UNION ALL
Select cast(count(*) as SameDataType) as col1, null, null from dbo.SameQuery
Hey Steve I...
July 11, 2005 at 7:33 pm
It's really rare that you can't rewrite sps like that to make a single statement.
July 11, 2005 at 6:07 pm
Actually I was reffering to canada... but if you say europe too I'll believe you
.
July 11, 2005 at 6:01 pm
Maybe this could be considered cheating but it would work :
Select col1, col2, col3 from dbo.OracleTable
UNION ALL
Select cast(count(*), null, null as SameDataType as col1) from dbo.SameQuery
July 11, 2005 at 5:26 pm
I checked your question but I don't know what the problem is... waiting for feedback from other members.
Also if you need ms access specific answer you might visit this site...
July 11, 2005 at 5:24 pm
Maybe... not what I understood on the first read.
July 11, 2005 at 5:18 pm
You can switch the cursor to a loop, but that's not gonna be a big improvement. How much logic is stored in those procs? Is is possible to...
July 11, 2005 at 5:17 pm
All you have to do is put the time constraints in the variables.
Can you post some sample of the constraints so that I can be sure it's possible to do?
July 11, 2005 at 5:12 pm
Yes... it makes sens that this value will be unknown for a part of the lifetime of the record.
July 11, 2005 at 3:10 pm
Forget the function and use this where condition in the main proc :
Select col from dbo.MyTable where DateCol >= @DateStart and DateCol <[=] @dateEnd
Place an index on the data...
July 11, 2005 at 3:03 pm
Viewing 15 posts - 15,256 through 15,270 (of 18,923 total)