TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Tharake Gunatilake
NA
53
73.2k
pass sql trigger values to windows application
Feb 28 2013 12:53 AM
i have a table in MS SQL with following collumns.
Table name - ITEMS
Columns - ITEM_ID,ITEM_NAME,QTY,UNIT_PRICE
i want to send a sms when a certain item QTY
decreased to 50 from C# windows application.
So i have written a trigger.
CREATE TRIGGER
LOW_STOCK
AFTER UPDATE OF
QTY ON ITEM
REFERENCING NEW AS
N
FOR EACH ROW
WHEN
(N.QTY<50)
SIGNAL SQLSTATE
'75000'
SET MESSAGE_TEXT
='LOW QTY'
i want to pass the low stock ITEM_ID s to the windows app.
What can i do??Please help me.
Thank u very much.
Reply
Answers (
1
)
Show in label by selecting dropdown
string