Forum Replies Created

Viewing 15 posts - 46 through 60 (of 429 total)

  • RE: SQL DBA knowing user passwords

    Jeff Moden (11/20/2014)


    NJDave (11/20/2014)


    Today, a DBA in my group doesn't understand the reasoning and has experiencing storing the passwords for end-users.

    Sounds mean but my suggestion is that anyone that doesn't...

  • RE: Error creating temp table based on IF logic

    We're current users. If you have any questions about their software (or any other similar products) I'd prefer to answer privately for a number of reasons.

  • RE: Error creating temp table based on IF logic

    Jeff Moden (11/14/2014)


    Is this, by any chance, for an "eDiscovery" system for use during litigation?

    Well, I can guarantee you that no one hands over their Outlook data files because they're...

  • RE: Error creating temp table based on IF logic

    Jeff Moden (11/14/2014)


    Why not just create a couple of views that use OPENROWSET or OPENQUERY to create the same number of columns and conditionally flop a synonym between the views?

    Hi...

  • RE: Error creating temp table based on IF logic

    Luis Cazares (11/13/2014)


    sqldriver (11/13/2014)


    Also, I'm not crazy. I swear.[/url]

    I was expecting something like that. I don't have a similar procedure because I usually don't need it.

    Do you have your own,...

  • RE: Error creating temp table based on IF logic

    Luis Cazares (11/13/2014)


    And there's another alternative based on "best practices" 🙂

    DECLARE @PrVers NVARCHAR(128)

    , @PrVersNum DECIMAL(10,2)

    , @command NVARCHAR(4000)

    SET @PrVers = CAST(SERVERPROPERTY('ProductVersion') AS NVARCHAR(128));

    SELECT @PrVersNum = SUBSTRING(@PrVers, 1,CHARINDEX('.', @PrVers) + 1...

  • RE: Error creating temp table based on IF logic

    Eirikur Eiriksson (11/13/2014)


    How about this

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @PrVers NVARCHAR(128)

    , @PrVersNum DECIMAL(10,2)

    , @StageTable NVARCHAR(1024) = N''

    SET @PrVers = CAST(SERVERPROPERTY('ProductVersion') AS NVARCHAR(128));

    SELECT @PrVersNum = SUBSTRING(@PrVers, 1,CHARINDEX('.', @PrVers) + 1 )

    PRINT...

  • RE: Error creating temp table based on IF logic

    Eirikur Eiriksson (11/13/2014)


    Quick suggestion, not as elegant as Luis's but should work

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @PrVers NVARCHAR(128)

    , @PrVersNum DECIMAL(10,2)

    , @StageTable NVARCHAR(1024) = N''

    SET @PrVers = CAST(SERVERPROPERTY('ProductVersion') AS NVARCHAR(128));

    SELECT @PrVersNum ...

  • RE: Error creating temp table based on IF logic

    Luis Cazares (11/13/2014)


    What about creating the table and adding or dropping columns as needed?

    Here's an example dropping the column to preserve the order and prevent confusing the Intellisense.

    DECLARE @PrVers NVARCHAR(128)

    ,...

  • RE: Error creating temp table based on IF logic

    Alvin Ramard (11/13/2014)


    g.britton (11/13/2014)


    The temp table in the dynamic sql is created in a different context and not available to the calling context. e.g.

    DECLARE @sql nvarchar(4000) = N'create...

  • RE: Rank duplicates, but only rows involved in duplicates

    Eirikur Eiriksson (10/25/2014)


    sqldriver (10/25/2014)


    Eirikur Eiriksson (10/25/2014)


    You are on the right track there, a simple solution would be to "UPPER" the values before hashing. SHA1 is quite a lot cheaper computationally...

  • RE: Rank duplicates, but only rows involved in duplicates

    Eirikur Eiriksson (10/25/2014)


    You are on the right track there, a simple solution would be to "UPPER" the values before hashing. SHA1 is quite a lot cheaper computationally than MD5 and...

  • RE: Rank duplicates, but only rows involved in duplicates

    Eirikur Eiriksson (10/25/2014)


    An alternative solution which doesn't require any joining. It scales well for large sets but has a weakness of returning false positives although fairly unlikely with this type...

  • RE: Rank duplicates, but only rows involved in duplicates

    ChrisM@home (10/24/2014)


    sqldriver (10/24/2014)


    ChrisM@Work (10/24/2014)


    -- Changes MERGE JOIN to NESTED LOOPS, loses sort required for ROW_NUMBER()

    Would you mind explaining some more about this part?

    Thanks

    Sure. Have a good look at the actual...

  • RE: Rank duplicates, but only rows involved in duplicates

    ChrisM@Work (10/24/2014)


    -- Changes MERGE JOIN to NESTED LOOPS, loses sort required for ROW_NUMBER()

    Would you mind explaining some more about this part?

    Thanks

Viewing 15 posts - 46 through 60 (of 429 total)