Method | Description | |
---|---|---|
Execute ( |
Executes the script. Use script.Execute(transaction) to do the work. We will also pull the status of our script exection from here. |
|
SqlScriptRunner ( |
Initializes a new instance of the SqlScriptRunner class.
|
|
SqlScriptRunner ( |
Initializes a new instance of the SqlScriptRunner class. Initializes the script to execute.
|
|
SqlScriptRunner ( ScriptCollection scripts ) : System |
Initializes a new instance of the SqlScriptRunner class.
|
|
SqlScriptRunner ( Stream scriptStream, |
Initializes a new instance of the SqlScriptRunner class.
|
|
SqlScriptRunner ( |
Initializes a new instance of the SqlScriptRunner class. Initializes the script to execute.
|
|
SqlScriptRunner ( string scriptText ) : System |
Initializes a new instance of the SqlScriptRunner class.
|
Method | Description | |
---|---|---|
IsCrudScript ( Script script ) : bool | ||
ReadStream ( Stream stream, |
||
SetNoCountOff ( |
Temporarily set NOCOUNT OFF on the connection. We must do this b/c the SqlScriptRunner depends on all CRUD statements returning the number of effected rows to determine if an error occured. This isn't a perfect solution, but it's what we've got.
|
|
UnpackEmbeddedScript ( |
||
UnpackEmbeddedScript ( |
||
UnpackEmbeddedScript ( |
public Execute ( |
||
transaction | The current transaction. | |
return | int |
public SqlScriptRunner ( |
||
assemblyWithEmbeddedScript | The assembly containing the script as an embedded resource. | |
scopingType | /// Used to scope the script name within the embedded resource. /// | |
scriptName | string | Name of the script. |
encoding | The encoding. | |
return | System |
public SqlScriptRunner ( |
||
assemblyWithEmbeddedScript | The assembly with the script as an embedded resource. | |
fullScriptName | string | Fully qualified resource name of the script. |
encoding | The encoding. | |
return | System |
public SqlScriptRunner ( ScriptCollection scripts ) : System | ||
scripts | ScriptCollection | The scripts. |
return | System |
public SqlScriptRunner ( Stream scriptStream, |
||
scriptStream | Stream | The stream containing the script to execute. |
encoding | The encoding. | |
return | System |
public SqlScriptRunner ( |
||
scopingType | /// A type whose assembly contains the script as an embedded resource. /// Also used to scope the script name. See remarks. /// | |
scriptName | string | Name of the script. |
encoding | The encoding. | |
return | System |
public SqlScriptRunner ( string scriptText ) : System | ||
scriptText | string | The full script text to execute. |
return | System |