Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

We need to write a trigger so that when rows inserted into a sql server table meeting certain conditions, they are then written to a windows OS flat file in CSV format.

Are there any commands short of running a xp_cmdshell that would allow us to do this?

share|improve this question

1 Answer 1

Use a SQL CLR trigger to do this. PS, I wouldn't!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.