Forum Replies Created

Viewing 15 posts - 121 through 135 (of 161 total)

  • RE: CTE Incorrect Syntax

    Thanks Koen,

    Got it working.

    Really appreciate your help man.

  • RE: CTE Incorrect Syntax

    Thanks for the answer, it makes sense.

    I need to use it to pass the result into a variable.

    ;WITH CTE_Test (ID)

    AS

    (

    SELECT CAST(id AS VARCHAR(60)) FROM cat_transaction

    EXCEPT

    SELECT ext_reference FROM Patricia.dbo.BUDGET_LINE

    )

    ;

    SET...

  • RE: Trigger failing

    Hi all,

    The insert procedure wont change and they won't provide a fix.

    The reason the asked me to get the data back into our DB is because their developers can't.(Don't know...

  • RE: Trigger failing

    John,

    There will be more than one case id in the budget_line table because you can have multiple transaction for each case.

    And for the second part, will I then select from...

  • RE: Trigger failing

    GilaMonster,

    I have inserted a row into the transaction table and all it says is :(1 row(s) affected)

  • RE: Trigger failing

    OK GilaMonster I will try, don't know if it will work because there are other tables that will also need to get data in for each transaction

  • RE: Trigger failing

    John,

    The reason I created this trigger is because the data will only be inserted one at a time, so if there are two records being inserted then the trigger will...

  • RE: Trigger failing

    It says one row affected when I execute the SP, or when I script out the transaction and just execute the code.

    If I enable the trigger the transaction doesn't go...

  • RE: Trigger failing

    It says one row affected when I execute the SP, or when I script out the transaction and just execute the code.

    If I enable the trigger the transaction doesn't go...

  • RE: Trigger failing

    GilaMonster,

    It says one row affected, so it does work right.

    When I look in the other DB I see the record has been inserted.

    John Mitchell,

    I don't know how they import the...

  • RE: Trigger failing

    Yeah it doesn't insert into the transaction table.

    There are no errors, it just doesn't insert it.

    And if I disable the trigger and do another transaction, then it writes the "lost"...

  • RE: Trigger failing

    It works perfectly if I execute it manually.

    USE eqcas

    GO

    DECLARE @LineNumber SMALLINT,

    @CaseID SMALLINT,

    @ChargeingID SMALLINT

    SET @CaseID = (SELECT

    CASE_ID

    FROM

    cat_transaction

    WHERE

    id = (SELECT

    MAX(id)

    FROM

    cat_transaction

    )

    )

    SET @LineNumber...

  • RE: Exporting Column Headers to Excel

    Found a query for this.

    To all who would need to do this in the future, use:

    Use db_Name

    SELECT column_name 'Column Name',

    data_type 'Data Type',

    CHARacter_maximum_length 'Maximum Length'

    FROM information_schema.columns

    WHERE table_name...

  • RE: Returning multiple records when only one is specified

    When he explained to me what he wants I did ask if i should have it in one column and he said no, im not sure even why he wants...

  • RE: Returning multiple records when only one is specified

    I have no idea sorry

Viewing 15 posts - 121 through 135 (of 161 total)