Forum Replies Created

Viewing 15 posts - 391 through 405 (of 458 total)

  • RE: "Per-user" temp table

    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...

  • RE: "Per-user" temp table

    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,...

  • RE: "Per-user" temp table

    Gazareth (8/9/2012)


    Sounds like an interesting problem!

    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...

  • RE: "Per-user" temp table

    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...

  • RE: Better to use parameters or multiple procedures?

    myheadhurts (7/30/2012)


    I wouldn't start splitting out your functionality into separate sprocs in the hope it will improve performance. Spend the time to understand why the slow ones are...

  • RE: Optional parameters in WHERE clause

    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...

  • RE: Optional parameters in WHERE clause

    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...

  • RE: Optional parameters in WHERE clause

    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...

  • RE: Optional parameters in WHERE clause

    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...

  • RE: Problem with SQLServer and Bitwise operators

    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...

  • RE: Write Better Code

    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...

  • RE: Password Help

    djackson 22568 (6/28/2012)


    I have not used KeePass, but I do use Password Safe. It is a fine product, and the ability to have all my passwords in one place...

  • RE: Password Help

    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...

  • RE: Disk configuration

    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...

  • RE: Disk configuration

    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...

Viewing 15 posts - 391 through 405 (of 458 total)