Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Output Trigger Result to Text Doc

Status
Not open for further replies.

WurzelGummidge

Technical User
Mar 18, 2003
27
0
0
GB
Had some help earlier on Finding triggered row. Further to this, would anyone have the code that would:

a) create trigger on order_table insert action
b) get the data from the row that triggered the trigger
c) send this data to a text file

 
You can use the contents of the "inserted" pseudo table and then use the sp_OA* stored procedures to create the text file on the server. See the SQL Server BOL to get more details on these procedures. Its too huge to mention here...

HTH,
SriSamp
 
What are SQL Books Online & Where Can I Find Them?
faq183-689 --James
 
Books online can be found from windows Start->Programs->sql server. ________________________________________________________________________________
If you do not like change, get out of the IT business...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top