Forum Replies Created

Viewing 15 posts - 76 through 90 (of 92 total)

  • RE: only run trigger if...

    great, this worked a treat thanks.

  • RE: only run trigger if...

    Hi

    i'm not sure where to carry out the test. I'm from a vb background, will there be some kind of

    select stockcode from inserted

    if stockcode like 'Y%' then

    do something...

  • RE: link to proteus (unix) server

    Brilliant. It works perfectly. Thanks for your help.

  • RE: link to proteus (unix) server

    thanks Lowell

    the link is really useful and has helped me understand how the linked server works but i'm now getting an error message saying :Data source name not found and...

  • RE: database mail trigger on insert

    thanks for all your replies.

    my afternoon is now going to be checking out the link posted by opc.three on database mail. 🙂

    for the subject to include date i went with...

  • RE: database mail trigger on insert

    great, thanks.

    I see your point and def don't want to start rolling back transactions. Am i right in thinking that i don't need to worry about this in 2005 as...

  • RE: database mail trigger on insert

    hi,

    just got my head around all of the responses.

    so...It turns out i was running trigger to email on our test system which doesn't have the correct permissions to truncate the...

  • RE: database mail trigger on insert

    --truncate table EncoreCompanyT.dbo.InvNewStockode

    --insert into EncoreCompanyT.dbo.InvNewStockode

    --select StockCode, Description, LongDesc, Supplier, Buyer

    --from INSERTED

    EXEC msdb.dbo.sp_send_dbmail

    @recipients = 'gfrewin@dddltd.co.uk',

    @body = 'Please find the...

  • RE: Can DatabaseMail attach a formatted Excel file?

    just stumbled across this thread. worked a treat thanks.

  • RE: Trigger Help??

    just re-tested and it works fine. Thanks for all your help.

  • RE: Trigger Help??

    ALTER TRIGGERdbo.trg_LotTransactions

    ONEncoreCompanyT.dbo.LotTransactions

    FOR INSERT

    AS

    SET NOCOUNT ON

    UPDATEDL

    SETStatusFlag = ' '

    --SELECT *

    FROMEncoreCompanyT.dbo.DataLots DL

    JOIN(SelectLotJob, TrnQuantity * -1 as TrnQuantity

    FromINSERTED --EncoreCompanyT.dbo.LotTransactions

    WhereTrnValue < 0

    AndTrnType = 'R') LT

    ONLT.LotJob = DL.LotNumber

    ANDLT.TrnQuantity...

  • RE: Trigger Help??

    Ok, after some meddling i've managed to get ....

    UPDATE DL

    SETStatusFlag = ' '

    FROM EncoreCompanyT.dbo.DataLots DL

    JOIN (SelectLotJob, TrnQuantity * -1 as TrnQuantity

    FromEncoreCompanyT.dbo.LotTransactions

    WhereTrnValue < 0

    AndTrnType...

  • RE: Trigger Help??

    Hi

    I have created the following from the posts below...

    UPDATEEncoreCompanyT.dbo.DataLots

    SETStatusFlag = ' '

    WHEREStatusFlag <> ' '

    ANDEXISTS

    (

    ...

  • RE: Trigger Help??

    perfect, thanks ken. 🙂

  • RE: Bulk Insert

    thanks

    I am now getting stuck into SSIS 🙂

Viewing 15 posts - 76 through 90 (of 92 total)