Re: update trigger help!!
From: Hugo Kornelis (hugo_at_pe_NO_rFact.in_SPAM_fo)
Date: 11/09/04
- Next message: Gail Erickson [MS]: "Re: Table Size Formula"
- Previous message: Joe1714: "Re: inner join with parameters on 2 DataTables"
- In reply to: ST: "Re: update trigger help!!"
- Next in thread: ST: "Re: update trigger help!!"
- Reply: ST: "Re: update trigger help!!"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 09 Nov 2004 01:37:24 +0100
On Mon, 8 Nov 2004 15:49:03 -0800, ST wrote:
(snip)
>3) When the Rapidia Date Completion Column is filled in from NULL on the
>Rapidia Log table...to insert a new record into the DateVisit table>>CANNOT
>FIGURE THIS OUT!!!!!! Please help :(
(snip)
Hi ST,
The SQL in the subquery (after "if not exists") is formatted in a way that
makes it hard to read, so I may be missing something. But I don't see any
reference to the inserted table here.
If you take just the subquery and run it in Query Analyzer, do you get any
rows back? If so, the "if not exists" clause will always evaluate to false
and the insert will never be executed.
If you need more assitance in getting yoour triggers to work, I urge you
to post more detailed information about your tables, data and expected
results. See www.aspfaq.com/5006 and
http://vyaskn.tripod.com/code.htm#inserts
Best, Hugo
-- (Remove _NO_ and _SPAM_ to get my e-mail address)
- Next message: Gail Erickson [MS]: "Re: Table Size Formula"
- Previous message: Joe1714: "Re: inner join with parameters on 2 DataTables"
- In reply to: ST: "Re: update trigger help!!"
- Next in thread: ST: "Re: update trigger help!!"
- Reply: ST: "Re: update trigger help!!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|