|
|
Question : how to get trigger content into text file programmatically(using T-SQL)?
|
|
Hi there My Database contains around 500 triggers. I want to run a single stored procedure that will write all triggers into single text file or separate text file in a separate folder
Thanks in Advance
Regards visu
|
Answer : how to get trigger content into text file programmatically(using T-SQL)?
|
|
try this...
SELECT dbo.sysobjects.name, dbo.syscomments.text FROM dbo.sysobjects INNER JOIN dbo.syscomments ON dbo.sysobjects.id = dbo.syscomments.id WHERE (dbo.sysobjects.xtype = 'TR')
|
|
|
|