A scripts folder contains a collection of scripts that define a database schema and, optionally, static data. Each database object is represented by an individual script file. These files can be organized into user-defined subfolders, typically grouped by object type.
Scripts folders can be used for:
Note
The Scripts folder feature is available only in the Enterprise edition.
A scripts folder stores the following components:
CREATE statements for the objects in that category.INSERT statements for static data, organized by table.ALTER DATABASE statements applicable to the database as a whole.Before using scripts folders in comparison and synchronization, consider the following:
dbForge Studio can compare scripts folders even if their structures differ or when all objects are stored in a single .sql file.
Note
Scripts folders can be created using dbForge tools or third-party utilities. During synchronization, however, dbForge Studio organizes objects according to its standard folder structure, regardless of the original layout.
When you compare and synchronize scripts folders as either the source or the target, dbForge Studio generates a synchronization script. You can save this script to a file or open it in the internal editor for review.
1. Open the New Schema Comparison wizard in one of these ways:
2. Under Source:
2.1. In Type, select Scripts Folder.
2.2. In Database scripts folder, select one of the following options:
Select the previously added scripts folder.
Click
to create a scripts folder and add it to schema
comparison.
Click the ellipsis (…) and select the scripts folder.
3. Under Target, select the data source to compare with the scripts folder, then configure the data source settings.

4. On the Options page, select the Ignore spaces in object name and Ignore white spaces options.
These options help avoid issues with how SQL Server interprets leading and trailing spaces in the object definitions of views, stored procedures, functions, triggers, user-defined types, defaults, and rules.
5. Click Compare.
The comparison results appear in the Schema Comparison document.
By default, all objects are selected for synchronization. To exclude any objects from synchronization, clear the checkboxes next to the corresponding objects.

6. At the top of the document, click
to open the Schema Synchronization Wizard.
7. Select an output option to generate a synchronization script, and optionally configure the synchronization settings.
8. Click Synchronize.
1. Open the New Schema Comparison wizard in one of these ways:
2. Under Source, select the data source to compare with the scripts folder, then configure the data source settings.
3. Under Target:
3.1. In Type, select Scripts Folder.
3.2. In Database scripts folder, select one of the following options:
Select the previously added scripts folder.
Click
to create a scripts folder and add it to schema
comparison.
Click the ellipsis (…) and select the scripts folder.

4. On the Options page, select the Ignore spaces in object name and Ignore white spaces options.
5. Click Compare.
The comparison results appear in the Schema Comparison document.
By default, all objects are selected for synchronization. To exclude any objects from synchronization, clear the checkboxes next to the corresponding objects.

6. At the top of the document, click
to open the Schema Synchronization Wizard.
7. Select an output option to generate a synchronization script, and optionally configure the synchronization settings.
Tip
When the scripts folder is selected as the target, you can change the folder structure in the Scripts Folder Structure dialog. For this, select Update the scripts folder, then click Scripts Folder Structure.
8. Click Synchronize.
You can create a scripts folder in one of these ways:
1. In the top menu, select Database > Tasks > Create Scripts Folder or Snapshot.
2. In the dialog, select a database and server connection as the source.
3. Enter the full path to the destination scripts folder that will be created.
4. Optional: Select Include data to insert static data.
5. Optional: Click Scripts Folder Structure to customize the scripts folder structure and file name templates.
6. Click Create.
