| 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
)
Public Overridable Function ExecuteNonQuerySQLFile (
scriptFilePath As String,
connectionString As String,
log As EventLog
) As Boolean
public:
virtual bool ExecuteNonQuerySQLFile(
String^ scriptFilePath,
String^ connectionString,
EventLog^ log
)
abstract ExecuteNonQuerySQLFile :
scriptFilePath : string *
connectionString : string *
log : EventLog -> bool
override ExecuteNonQuerySQLFile :
scriptFilePath : string *
connectionString : string *
log : EventLog -> bool
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:
BooleanTrue if the script ran, false otherwise.
See Also