Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Database Trigger

Author  Topic 

Yonkouturko
Yak Posting Veteran

59 Posts

Posted - 2013-02-02 : 06:39:06
Is it possible that The SQL SERVER 2008 R2 will AUTOMATICALLY TRIGGER a vb.net 2010 application when ever a record table is updated...

is there any stored procedure for that??

please give me idea... not answers. because asking for answer's is too much...
.. give me hints...

very much appreciate your comment's and suggestions :)

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-02-02 : 08:00:52
one thing you can do is add a sql agent job which calls vn application and schedule job to execute based on a regular period. have a control table to indicate whether record is updated. job checks this table and does application call only when control bit is set (record updated)

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-02-02 : 15:58:02
The obvious thought that comes to mind when you say "AUTOMATICALLY TRIGGER" is an update trigger on the table. However, I would be very weary about doing that for all kinds of reasons - data integrity, performance etc. So if you don't need "live" updates I would go with a scheduled task as Visakh suggested.
Go to Top of Page

LoztInSpace
Aged Yak Warrior

940 Posts

Posted - 2013-02-03 : 06:25:53
Check out Service Broker.
http://technet.microsoft.com/en-us/library/bb522893(v=sql.105).aspx
Go to Top of Page
   

- Advertisement -