| SqlUtilityRunScript Method |
Runs SQL script files given their path.
Namespace:
Galactic.Sql
Assembly:
Galactic.Sql (in Galactic.Sql.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public virtual bool RunScript(
string connectionString,
string[] scriptPaths,
EventLog log
)
Public Overridable Function RunScript (
connectionString As String,
scriptPaths As String(),
log As EventLog
) As Boolean
public:
virtual bool RunScript(
String^ connectionString,
array<String^>^ scriptPaths,
EventLog^ log
)
abstract RunScript :
connectionString : string *
scriptPaths : string[] *
log : EventLog -> bool
override RunScript :
connectionString : string *
scriptPaths : string[] *
log : EventLog -> bool
Parameters
- connectionString
- Type: SystemString
The connection string to use when creating the database. - scriptPaths
- Type: SystemString
The paths to the script files on the filesystem. - log
- Type: Galactic.EventLogEventLog
The event log to log execptions to. May be null for no logging.
Return Value
Type:
BooleanTrue if all scripts ran, false otherwise.
See Also