Solved

Delphi 7 :: MS SQL 2005 :: Triggers

Posted on 2007-11-18
4
381 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 500 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

717 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