This tool loops on a set of configured database of a SQL Server instance, scripting the DDLs for each object (if selected in the configuration file) and returning the summaries at the end (if configured as well).
Here is an example of the configurations.json file:
{
    "databaseServer": "localhost",
    "outputFormatForDatabases": "JSON",
    "targetFolder": "C:\\temp",
    "databases": [
        {
            "name": "",
            "scriptTables": true,
            "scriptViews": true,
            "scriptStoredProcedures": true,
            "scriptFunctions": true,
            "scriptSchemas": true,
            "scriptTypes": true,
            "scriptSynonyms": true,
            "scriptRoles": true,
            "scriptSummary": true,
            "addIdentityToSummary": true,
            "addComputedColumnToSummary": true
        },
        {
            "name": "",
            "scriptTables": true,
            "scriptViews": true,
            "scriptStoredProcedures": true,
            "scriptFunctions": true,
            "scriptSchemas": true,
            "scriptTypes": true,
            "scriptSynonyms": true,
            "scriptRoles": true,
            "scriptSummary": true,
            "addIdentityToSummary": true,
            "addComputedColumnToSummary": true
        }
    ]
}Based on the configuration file, the tool scans the onbject in each configured database. Here is the meaning of all the configurable items:
| Key | Type | Description | 
|---|---|---|
| databaseServer | string | Fully qualified name server and instance (if required) + port (if required) | 
| outputFormatForDatabases | enum | JSONfor in memory objects,FILESfor.sqland.mdfiles | 
| targetFolder | string | Folder used when the outputFormatForDatabasesis set toFILES | 
| targetFolder | array | list of databaseobjects | 
| Key | Type | Description | 
|---|---|---|
| name | string | Database name (where to scan objects) | 
| scriptTables | bool | truefor including Tables in the export | 
| scriptViews | bool | truefor including Views in the export | 
| scriptStoredProcedures | bool | truefor including Stored Procedures in the export | 
| scriptFunctions | bool | truefor including Functions in the export | 
| scriptSchemas | bool | truefor including Schemas in the export | 
| scriptTypes | bool | truefor including User Defined Table Types in the export | 
| scriptSynonyms | bool | truefor including Synonyms in the export | 
| scriptRoles | bool | truefor including Roles in the export | 
| scriptSummary | bool | truefor creating a summary file | 
| addIdentityToSummary | bool | truefor including the value to the summary | 
| addComputedColumnToSummary | bool | truefor including the value to the summary |