Guest_imported
New member
- Jan 1, 1970
- 0
Hi all,
I'm trying to write a script to extract the DDL for a trigger, given the table name.
The main problem I encounter is with the print function. First to replace the char(10), (I think I solved this with the stuff function) but now I'm trying to print lines containing the "%" char, that SQL understand as a formatting for the print and mess it all up.
Any suggestion?
Thanks,
Roberto
I'm trying to write a script to extract the DDL for a trigger, given the table name.
The main problem I encounter is with the print function. First to replace the char(10), (I think I solved this with the stuff function) but now I'm trying to print lines containing the "%" char, that SQL understand as a formatting for the print and mess it all up.
Any suggestion?
Thanks,
Roberto