Viewing 15 posts - 76 through 90 (of 92 total)
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...
June 29, 2011 at 4:57 am
Brilliant. It works perfectly. Thanks for your help.
April 1, 2011 at 6:53 am
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...
April 1, 2011 at 2:06 am
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...
March 14, 2011 at 9:39 am
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...
March 14, 2011 at 9:07 am
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...
March 14, 2011 at 8:17 am
--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...
March 10, 2011 at 5:52 am
just stumbled across this thread. worked a treat thanks.
March 3, 2011 at 9:18 am
just re-tested and it works fine. Thanks for all your help.
March 1, 2011 at 8:57 am
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...
March 1, 2011 at 8:03 am
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...
March 1, 2011 at 4:26 am
Hi
I have created the following from the posts below...
UPDATEEncoreCompanyT.dbo.DataLots
SETStatusFlag = ' '
WHEREStatusFlag <> ' '
ANDEXISTS
(
...
March 1, 2011 at 4:05 am
Viewing 15 posts - 76 through 90 (of 92 total)