Method | Description | |
---|---|---|
Dispose ( ) : void | ||
ExecuteFile ( string filePath, string basePath = null ) : bool |
Executes a SQL file, from the file path
|
|
ExecuteFile ( |
Executes a SQL file on the given connection
|
|
ExecuteReader ( TextReader file, string basePath = null ) : bool |
Executes a SQL file, from a TextReader
|
|
ExecuteStream ( Stream stream, string basePath = null ) : bool |
Executes a SQL file from a stream
|
|
ExecuteStream ( |
||
SqlCmd ( |
Constructor
|
Method | Description | |
---|---|---|
ConnectCommand ( string line ) : void | ||
ExecuteBatch ( string batch, uint count ) : bool | ||
GetFullFilePath ( string filePath, string basePath ) : string | ||
OnErrorCommand ( string line ) : void | ||
RunCommand ( string line, string basePath ) : void | ||
SetVarCommand ( string line ) : void | ||
ShellCommand ( string line ) : void |
public ExecuteFile ( string filePath, string basePath = null ) : bool | ||
filePath | string | The SQL file to execute |
basePath | string |
/// The base path to use to qualify relative path of any included files that are to be executed.
/// If not supplied this will default to the directory path containing |
return | bool |
public static ExecuteFile ( |
||
conn | Connection to execute the file on | |
filePath | string | |
return | void |
public ExecuteReader ( TextReader file, string basePath = null ) : bool | ||
file | TextReader | The SQL file to execute, as a TextReader |
basePath | string | The base path to use to qualify relative path of any included files that are to be executed |
return | bool |
public ExecuteStream ( Stream stream, string basePath = null ) : bool | ||
stream | Stream | The SQL file to execute, as a Stream |
basePath | string | The base path to use to qualify relative path of any included files that are to be executed |
return | bool |
public static ExecuteStream ( |
||
conn | ||
stream | Stream | |
return | void |
public SqlCmd ( |
||
conn | The SQL Connection used to execute the SQL batches | |
return | System |