To automatically build an installation that generates customization for an application using Microsoft SQL Server, I am currently evaluating whether the following is possible:
I want to programmatically (CMD script or C # code) execute the " Generate Scripts " function in a database accessible from Microsoft SQL Server Management Studio 2008.
those. call some code and have all the objects (tables, SP, restrictions, etc.) of the specified database in the form of an SQL script.
I currently need a structure, not data.
Question : Is it possible to achieve this goal?
source share