Forum Replies Created

Viewing 15 posts - 2,896 through 2,910 (of 7,614 total)

  • RE: A question about the EXISTS operator

    Yes.  You can say either:

    In the old AdventureWorks2016 database
    In ye olde AdventureWorks2016 database

    but I don't think they should be mixed 😉

  • RE: Running out of TempDB when using MERGE Query

    Without seeing the actual MERGE, can't get into specifics.

    But could you try batching it yourself.  For example, if the table being MREGEd has a unique clustering key, then...

  • RE: t-sql 2012 sum of several fields

    Jonathan AC Roberts - Thursday, March 21, 2019 8:14 AM

    ScottPletcher - Thursday, March 21, 2019 7:50 AM

  • RE: t-sql 2012 sum of several fields

    I think it's more clear and more flexible to just test each and add up a "not null" count accordingly:


    CASE WHEN
        CASE WHEN...

  • RE: Stored Procedure and Output value

    Maybe this?:

    SET ANSI_NULLS ON;
    SET QUOTED_IDENTIFIER ON;
    GO
    ALTER Procedure [dbo].[sp_MarkAsLeaver]
        @username varchar(50),
        @LeaverDetails varchar(100),
        @RowsUpdated int output,
       ...

  • RE: trimming SSNs

    RonKyle - Wednesday, March 20, 2019 7:26 AM

    Jeff Moden - Wednesday, March 20, 2019 7:01 AM

    March 20, 2019 at 8:29 am

    #2025019

  • RE: trimming SSNs

    RonKyle - Tuesday, March 19, 2019 1:30 PM

    For all of you advocating encryption, how do you stored SSNs?  Fortunately I don't deal...

  • RE: SP with Conditional Where clause where

    Something like this:


    SET ANSI_NULLS ON;
    SET QUOTED_IDENTIFIER ON;
    GO
    CREATE PROCEDURE [dbo].[AppTracker_Milestone_Dates_Browse_SP]
        @UserName VARCHAR(51),
        @DecisionDate DATE,
        @State...

  • RE: Change in row values identification

    Rehan Ahmad - Tuesday, March 19, 2019 6:52 AM

    Thom A - Tuesday, March 19, 2019 5:54 AM

  • RE: trimming SSNs

    Luis Cazares - Monday, March 18, 2019 2:27 PM

    I would like to emphasize some things that have already been said.
    First thing you...

  • RE: trimming SSNs

    jcelko212 32090 - Friday, March 15, 2019 11:40 AM

    ScottPletcher - Friday, March 15, 2019 9:04 AM

    March 15, 2019 at 1:15 pm

    #2024640

  • RE: trimming SSNs

    jcelko212 32090 - Thursday, March 14, 2019 8:19 PM

    ScottPletcher - Thursday, March 14, 2019 3:01 PM

    March 15, 2019 at 9:04 am

    #2024584

  • RE: trimming SSNs

    jcelko212 32090 - Thursday, March 14, 2019 1:44 PM

    briancampbellmcad - Wednesday, March 13, 2019 9:50 AM

    March 14, 2019 at 3:01 pm

    #2024504

  • RE: Difference in checksum calculations.

    Maybe two separate hashes: (1) all the other columns and (2) the 4K column alone?

  • RE: insert to .XLSX fails if len(column) > 255

    polkadot - Wednesday, March 13, 2019 10:46 AM

    In this case TRIM won't be acceptable.  I have also tried ORDER BY len(materialdescription_ups) DESC,...

Viewing 15 posts - 2,896 through 2,910 (of 7,614 total)