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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-03-01 : 08:50:48
|
| James writes "Hi, like most people here I'm new to using triggers and have a pretty basic question.I'm developing an application that interacts with a web based SQL server.When a record is added to a table, I need to have a file generated that pulls the up to date data from the table. Is it possible to create/write to a file from a trigger that is not interacting with any other programs?I know you can send email this way, but I wasn't sure if you can create files.Any help would be greatly appreciated!" |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2002-03-01 : 11:05:14
|
| Sure - can call bcp, osql, redirection to create the file from a trigger.Note that all the while this is happenning the trigger will be holding the transaction open so maybe it's not a good idea.see www.nigelrivett.comCreating a text file from a stored procedureFor some examples of how to create files.==========================================Cursors are useful if you don't know sql.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|