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 2005 Forums
 Transact-SQL (2005)
 Returning Trigger's Results to a Stored Procedure

Author  Topic 

Artek
Starting Member

1 Post

Posted - 2008-02-19 : 09:17:00
Hello!

I've ran into the following issue: I need to create an INSTEAD OF trigger that returns results to the calling stored procedure. Is it possible without creating temporary tables?

For your help thanks in advance.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-02-19 : 09:53:34
calling stored procedure? how will stored procedure call trigger?didnt get the scenario that you are facing. can you elaborate?
Go to Top of Page

Qualis
Posting Yak Master

145 Posts

Posted - 2008-02-19 : 10:50:35
Triggers cannot return result sets. You will have to store the data in a "real" table as the Stored Proc won't have access to a # table because it is not in the same scope.
Go to Top of Page
   

- Advertisement -