Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Execute Database Scripts on Disk

Finds files matching a search mask and executes those scripts against a database connection.

Script usage:

Execute-DatabaseScripts(
	Connection: <text>,
	[Directory: <text>],
	[Include: <@(text)>],
	[Exclude: <@(text)>]
);

This operation may be prefixed with Core::, although this is a built-in namespace and isn't really necessary.

Arguments:

NameFormatScript UsageUsage Notes
Database connection
text
Connection
This argument is required.
In directory
text
Directory
Value note: "$WorkingDirectory".
Include (default)
@(text)
Include
See KB#1119 to learn more about masking syntax.
Exclude
@(text)
Exclude
See KB#1119 to learn more about masking syntax.