Viewing 15 posts - 391 through 405 (of 458 total)
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
Lynn Pettis (7/19/2012)
You could also use dynamic sql to build the query that needs to be executed based on the parameters passed to the stored procedure.
Yes, I've done that in...
July 19, 2012 at 9:52 am
jane.alford (7/16/2012)
What do you see when you print sSQL right after this statement?
sSQL = "SELECT * FROM parameters WHERE printer_type & " & pType & " = " & pType...
July 18, 2012 at 6:01 am
No arguments from me on this one. I remember in one of my first programming courses, assembly language on a Univac 9300, one of the things the prof stressed was...
July 15, 2012 at 6:28 am
djackson 22568 (6/28/2012)
June 28, 2012 at 9:40 am
I use a system of passwords, generated according to a fixed set of rules, that are easy to remember but impossible to guess. It's easy enough to think up such...
June 28, 2012 at 9:28 am
I'm NOT relying on RAID to replace backups. I do backup regularly, just manually and not every day - sometimes days go by with no new data. I'd like to...
June 26, 2012 at 3:48 pm
I did lose a disk about two months ago, in the RAID 5 set. The server wouldn't let me connect remotely, but otherwise kept running. I and several others from...
June 25, 2012 at 5:09 pm
Viewing 15 posts - 391 through 405 (of 458 total)