Click or drag to resize
Galactic API

SqlUtilityExecuteNonQuerySQLFile Method

Executes the SQL statements in a file given its path, and a connection string to the database.

Namespace:  Galactic.Sql
Assembly:  Galactic.Sql (in Galactic.Sql.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public virtual bool ExecuteNonQuerySQLFile(
	string scriptFilePath,
	string connectionString,
	EventLog log
)

Parameters

scriptFilePath
Type: SystemString
The path the the SQL script file to execute.
connectionString
Type: SystemString
The connection string of the database to execute the script against.
log
Type: Galactic.EventLogEventLog
The event log to log execptions to. May be null for no logging.

Return Value

Type: Boolean
True if the script ran, false otherwise.
See Also