Viewing 15 posts - 391 through 405 (of 465 total)
Sounds nicely politically correct, however, what do you do when the users themselves don't know quite what they want? I run into this a lot - they have a vague...
September 8, 2012 at 11:47 am
jerry-621596 (8/9/2012)
August 9, 2012 at 3:38 pm
SomewhereSomehow (8/9/2012)
... or it will be always a scan. ...
Yes, it will almost always be a scan in these cases - that's the problem. I'm handling the edge cases...
August 9, 2012 at 7:03 am
Lowell (8/9/2012)
August 9, 2012 at 6:50 am
SomewhereSomehow (8/9/2012)
August 9, 2012 at 6:07 am
Gazareth (8/9/2012)
I don't use Access so I've no idea if it has that ability, sorry.
e.g....
August 9, 2012 at 5:54 am
Gazareth (8/9/2012)
So this table could...
August 9, 2012 at 4:19 am
Gazareth (8/9/2012)
Sounds like an interesting problem!
It is, but also somewhat frustrating. It seems odd to me that there isn't an automatic session-specific, private temp table mechanism. It doesn't seem like...
August 9, 2012 at 3:41 am
SomewhereSomehow (8/9/2012)
And what about creating temp table outside of the SP, just with command create table directly?
You mean create a permanent table that would stay in the database? I could,...
August 9, 2012 at 3:31 am
Gazareth (8/9/2012)
I might be oversimplifying this, but is the purpose of each step just to refine the selection criteria (i.e. your WHERE clause)?
If so, would it...
August 9, 2012 at 3:24 am
SomewhereSomehow (8/9/2012)
What about creating temp table not inside stored procedure.
Unfortunately, I don't have all the actions available at once. I need to create the table and return a count to...
August 9, 2012 at 1:34 am
myheadhurts (7/30/2012)
July 30, 2012 at 3:17 pm
I just tested my original version (with all parameters and the AND/OR constructs) with the RECOMPILE instruction and it uses the indexes, just as when I coded the individual statements...
July 19, 2012 at 10:38 am
Sean Lange (7/19/2012)
Check out Gail's blog post on catch all queries. This explains a couple of ways to go about this.http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/%5B/url%5D
Thanks, that also helped clear up some confusion about injection...
July 19, 2012 at 10:26 am
I've just assembled this:
alter PROCEDURE [srchAkc].spAkcesIDSrch
-- Add the parameters for the stored procedure here
@AkcesitPred varchar(2) = '',
@Akcesit int = 0,
@Rok smallint = 0
AS
BEGIN
SET NOCOUNT ON
-- Direction variable
declare @tw tinyint
set...
July 19, 2012 at 10:21 am
Viewing 15 posts - 391 through 405 (of 465 total)