"neo" <se*******@hotmail.com> wrote in message
news:15**************************@posting.google.c om...
Is there any command to script out tables/stored procedures?
I want to make a process to script out tables every night.
thanks,
There's no TSQL command to do this, but you can use the SQLDMO interface to
generate the scripts. Although you could do it from a procedure using
sp_OACreate, it would probably be better to write an external script in your
preferred scripting language - VBScript, Perl, etc. - because it will be
much easier to work with the output files.
Simon