Forum Replies Created

Viewing 15 posts - 1,051 through 1,065 (of 7,187 total)

  • RE: Resolving many to many linkage

    rkordonsky 63916 - Wednesday, November 29, 2017 9:28 AM

    John Mitchell-245523 - Wednesday, November 29, 2017 8:58 AM

  • RE: Resolving many to many linkage

    Thanks for providing DDL and sample data, but please test before posting.

    What results are you expecting?

    John

  • RE: Trigger to notify when mssql job is disabled

    Yes, because IF @newEnabled <> @oldEnabled will always evaluate to False for an insert or delete,  That's because there will only be an Inserted or a Deleted table and therefore @newEnabled or...

  • RE: Trigger to notify when mssql job is disabled

    You don't appear to have taken ZZartin's advice about using FOR UPDATE, nor mine (five days ago) about making the trigger work for multiple modifications.  Nor does it look like...

  • RE: Trigger to notify when mssql job is disabled

    OK, you've posted the code that does work.  If you show us what you've tried that doesn't work for added and deleted jobs, we should be able to help out.

  • RE: Slow running stored procedure

    How (or why) do you have a stored procedure that includes CREATE FUNCTION statements?!

    I'd start by searching this site for string splitter functions.  The ones in your codes...

  • RE: Check for existense of database master key in "all" databases

    Stefan

    It works for me.  Note my modifications to your code:
    DECLARE @command varchar(1000)
    SELECT @command = 'SELECT ''?'', * FROM sys.symmetric_keys'
    EXEC sp_MSforeachdb @command

    John

  • RE: How to get Qty value?

    raghuldrag - Thursday, November 23, 2017 5:36 AM

    Kinldy solve the issue

    We're not here to do your job or your homework for...

  • RE: "Invalid column type from bcp client for colid xx."

    As far as I know, those numbers identify the components of the package.  Since the error message provides the respective names of those components (UAT tablename Destination.Inputs[OLE DB Destination Input]...

  • RE: trying to edit a stored procedure

    myukas - Wednesday, November 22, 2017 10:28 AM

    i agree and wanted to look at scripting from database
    is there anyway i can do...

  • RE: Table Design

    Arsh - Wednesday, November 22, 2017 7:37 PM

    Thank you Jeff, John, Lynn, Grant and Bill for the points. How about column lengths...

  • RE: Tricky LAG() and Windowing Script

    This isn't very elegant, but it seems to work!

    WITH Pivoted AS (
        SELECT
             PAT_ID
        ,    RECORDING_DTM
        ,    CASE
                WHEN RECORD_TYPE = 'BLOOD PRESSURE' THEN...

  • RE: Constraint help

    fweymouth - Wednesday, November 22, 2017 8:40 AM

    What I'm thinking is that each column must have a separate constraint that restricts the...

  • RE: Trigger to notify when mssql job is disabled

    For schedule changed, see the last line of my first reply.  For job deleted, you need to look for rows with the same job_id that appear in the Deleted virtual...

  • RE: Table Design

    No "standard" guidelines, no, but here are a few things that I stick to.  There will be exceptions to nearly all of them!

    (1) Choose the clustered index key...

Viewing 15 posts - 1,051 through 1,065 (of 7,187 total)