Re: Sql Server Trigger that calls Win32.SetEvent

From: Billy Yao [MSFT] (v-binyao_at_online.microsoft.com)
Date: 04/19/04


Date: Mon, 19 Apr 2004 14:10:10 GMT

Hi Bill,

>From your description, I noticed that you'd like to call the event (Win32.SetEvent) from within a SQL Server
Stored Procedure. Based on my experience, actions outside of SQL Server (or external information) can be
triggered and returned to SQL Server with an extended stored procedure. With extended stored procedure
(s), we can dynamically load and execute a function within a DLL file.

See the following Knowledge Base (KB) article for more information:

190987 HOW TO: Use Extended Stored Procedures
http://support.microsoft.com/?id=190987

On the other hand, we can also use DLL-Based COM Object to throw the event from within a SQL Server
stored procedure. In this way, you are allowed to load and run custom Component Object Model (COM)
objects through a set of OLE Automation stored procedures or through extended stored procedures.

198891 INF: Enabling DLL-Based COM Object Execution Outside SQL Server
http://support.microsoft.com/?id=198891

Does this answer your question Bill? Please apply my suggestions and let me know if this helps resolve
your problem. If there is anything more I can do to assist you, please feel free to post it in the group.

Regards,

Billy Yao
Microsoft Online Support
----------------------------------------------------
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.



Relevant Pages

  • Re: How to get list of EventClasses in MSSQLServer2000
    ... statement inside a stored procedure has completed.') ... SQL Server statement or stored procedure.') ... Plan','Displays the plan tree of the Transact-SQL statement executed.') ... Login','Occurs when a SQL Server login is added or removed; ...
    (microsoft.public.sqlserver.security)
  • Re: Accessing FoxPro Free Table
    ... which the SQL Server service is running. ... account, ... > If you are creating a stored procedure and you want> to make sure that the procedure definition cannot be> viewed by other users, you can use the WITH ENCRYPTION> clause. ... The procedure definition is then stored in an> unreadable form. ...
    (microsoft.public.data.odbc)
  • Re: Adding date to parameter
    ... SqlClient provider which is specifically written for SQL Server. ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... I made the assumption that the stored procedure went by the ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Problem with the Legacy ASP files and the Sql Server Express
    ... table, if another inserting occurs at the nearly exactly the same moment, ... SQL Server will pass it a default value. ... assume that you do have a connection that can reach SQL Server Express. ... unless your stored procedure has some thing that only works ...
    (microsoft.public.dotnet.framework.aspnet)
  • Stored procedure does not complete until result set is retrieved from ODBC
    ... I have a SQL Server Stored procedure that I am executing via ODBC. ... -- Start Code without cursor ...
    (microsoft.public.sqlserver.odbc)