Forum Replies Created

Viewing 15 posts - 1,381 through 1,395 (of 15,381 total)

  • RE: Comma separated

    Luis Cazares (7/21/2016)


    Insert the comma in the ISNULL function.

    SELECT DISTINCT STUFF(

    (SELECT (ISNULL(', ' + t2.Name,''))

    FROM #Temp t2

    where t1.ID = t2.ID -- t1.DeliverableITEP = t2.DeliverableITEP AND t1.GeoMarket = t2.GeoMarket AND t1.Segment...

  • RE: Comma separated

    PSB (7/21/2016)


    Hi,

    I need to remove the extra comma before the NameComma field if for the same ID we have a NULL or '' (blank value) as well as ResourceName .

    CREATE...

  • RE: Computer Math

    Good question. It is the only logical order to process that statement for me. I guess my brain just works like that or something. I spent quite a bit of...

  • RE: how to lock stored procedure code without encryption?

    Eric M Russell (7/20/2016)


    Within the stored proceure, you could contain most of your T-SQL, or at least the most sensive parts, encrypted in a varbinary(max) variable. The symmetric key could...

  • RE: Are the posted questions getting worse?

    Y.B. (7/20/2016)


    I got a PM from an OP saying simply 'douche bag'. LOL

    Granted, I'm having a really bad day and could have responded better...on the other hand at least...

  • RE: How to search exact match case

    Luis Cazares (7/20/2016)


    The best solution you can have is to normalize your data.

    +10000

    It is also the only long term maintainable solution.

    OP - when you cram multiple values like that...

  • RE: Current product being ran

    cbrammer1219 (7/20/2016)


    --===== Create the test table with

    CREATE TABLE #vb

    (

    [BoxOnPallet] [int] NULL CONSTRAINT [DF_Boxes_BoxOnPallet] DEFAULT (0),

    [BuffID] [varchar](50) NOT NULL,

    [DateTime] [datetime]...

  • RE: Substring from RIGHT

    volodymyrlev228 (7/20/2016)


    What about reverse the string, and then, reverse the string again? It finally helped me to

    --URL REMOVED.

    This sure looks a LOT like spam. Care to explain why...

  • RE: Are the posted questions getting worse?

    ThomasRushton (7/20/2016)


    Steve Jones - SSC Editor (7/19/2016)


    jasona.work (7/19/2016)


    Instead, who's going to see Star Trek this weekend!

    Star Trek is likely a couple weeks away for me.

    I don't think that the reviewers...

  • RE: how to lock stored procedure code without encryption?

    There really is no way you can prevent somebody from viewing the code if they have access to the server. The ONLY way you can 100% prevent this is by...

  • RE: Are the posted questions getting worse?

    Ray K (7/19/2016)


    jasona.work (7/19/2016)


    You know, this was probably not a good comment, so I'm dumping it...

    Instead, who's going to see Star Trek this weekend!

    My wife is dying to see The...

  • RE: Scalar-valued Function

    Firemander (7/15/2016)


    Agree; but can't change it. vendor code.

    Ahh. Did you grant EXECUTE on the scalar function to the user, or better yet the role they belong to? I have seen...

  • RE: Scalar-valued Function

    Firemander (7/15/2016)


    I have an AD account that can see a particular scalar function, but cannot execute it properly. It is supposed to return Current_User. The AD account can run the...

  • RE: The View Insert

    SQLRNNR (7/14/2016)


    Luis Cazares (7/14/2016)


    Sean Lange (7/14/2016)


    Great question. Oddly after answering I decided to see if it really would correctly. I ran the create table and view scripts. Then ran the...

  • RE: Are the posted questions getting worse?

    Phil Parkin (7/14/2016)


    Ray K (7/14/2016)


    Brandie Tarvin (7/14/2016)


    I'm in the last few days before Go Live on a major infrastructure upgrade. I'm lucky I can spell SEQUAL. @=)

    I once had a...

Viewing 15 posts - 1,381 through 1,395 (of 15,381 total)