?
Solved

Delphi 7 :: MS SQL 2005 :: Triggers

Posted on 2007-11-18
4
Medium Priority
?
385 Views
Last Modified: 2013-11-23
Hi Experts,

Can you please help me to implement a trigger using Delphi 7 and MS SQL 2005?
Please give me an example of how the set one up and then also how to receive the trigger in Delphi?

Thanks in advance!
0
Comment
Question by:Marius0188
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 25

Expert Comment

by:imitchie
ID: 20310819
umm.. you want the SQL Server 2005 server to use code in a Delphi 7 dll in a trigger ?
0
 

Author Comment

by:Marius0188
ID: 20310839
Exactly like you would use Interbase Triggers and Stored Procedures.
I would like SQL database engine to notify my Delphi application of certain events for example: On New Record Inserted etc....

In my Delphi Application I can then respond to such notifications.

Is this more clear?


Thanks :)
0
 
LVL 25

Accepted Solution

by:
imitchie earned 2000 total points
ID: 20310861
okay then the answer is a resounding... not really possible.  IB has very close ties with Delphi, you can subscribe to events that will callback delphi code.  SQL Server 2005 is a different kettle of fish.  i don't believe you can hook to listen to those events per se- without using .NET code.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 20310894
I have to agree with above: you cannot receive a trigger event outside of sql server, unless you implement something complex like having a clr procedure that could push an event into all subscribed clients to a server component...
never done that, though...
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question