Wrox Programmer Forums
|
BOOK: Professional SQL Server 2000 Programming
This is the forum to discuss the Wrox book Professional SQL Server 2000 Programming by Robert Vieira; ISBN: 9780764543791
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server 2000 Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 13th, 2005, 10:58 PM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default im a new member, and i have a little problem

problem discription:
i made a trigger (insted of update),an it works correctly, but if the updte statement matches more than one record an error appeared
ex: if i have products table,and i want to update the unitprice for the products which have Supplier id of 4 (ofcourse, many product my be supplied by one supplier).
all what i need from my trigger is: if the unit new price is less than the old one , the trigger puts the new in the audi table and rollback the transaction.
ANY ONE CAN HELP?????

 
Old July 7th, 2005, 02:43 AM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Match for both SupplierID and the ProductID at the same time , because ProductID must be unique in the table





Similar Threads
Thread Thread Starter Forum Replies Last Post
im new with c# i need help tunisiano C# 7 February 17th, 2007 04:54 AM
New Member Install TBH problem smhaig BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 February 10th, 2007 01:33 PM
A problem about the use of the private member yuanlairuci BOOK: Professional C#, 2nd and 3rd Editions 1 April 7th, 2005 02:24 AM
A problem about the use of the private member yuanlairuci C# 2 March 23rd, 2005 09:42 PM
Data Shaping Problem .. im stuck! jeuriks SQL Server ASP 2 March 19th, 2004 11:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.