Home Forums SQL Server 2008 SQL Server 2008 - General Concatenate IN TRIGGER two fields into one in this line of the TRIGGER T-SQL?: RE: Concatenate IN TRIGGER two fields into one in this line of the TRIGGER T-SQL?:

  • it would be simple concatenation;

    if the types happen to be integers, you might need to convert them to varchars:

    INSERT INTO tblSWJournal

    (tblSWJournal.Ledger,

    tblBulkPurchases.Amt)

    SELECT

    CONVERT(varchar(30),INSERTED.HeatTicketNumber)

    + ':'

    + CONVERT(VARCHAR(30),INSERTED.PO_Number),

    INSERTED.Unit_Price

    FROM INSERTED

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!