Hi folks.
From SQL Management Studio I'm able to save to a file the CREATE scripts of the tables (and other SQL objects too).
I'm wondering if exists a way to do the same from within C#.
I'm working in a generic WinForm Install/Config application (wizard like) for first time use when I deliver an application, and creating all empty tables. The general idea is to have those scripts in a directory, for this Config app read and execute all of them.
Sequence: Setup (VS Generated) -> CONFIG APP (*) -> Run app.
(*) Asking to the user where the SQL Server is, teting connections, writing config files, etc.
Thanks in advance.