Click or drag to resize
Galactic API

SqlUtilityExecuteQuerySQLFile Method

Executes the SQL query 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 List<SqlRow> ExecuteQuerySQLFile(
	string scriptFilePath,
	string connectionString,
	EventLog log
)

Parameters

scriptFilePath
Type: SystemString
The path the the TSQL 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: ListSqlRow
A list of rows of data returned from the query.
See Also