DataAccessBase.RunSqlScript

Executes a long SQL script that contains batches (GO commands). This code breaks the script into individual commands and captures all execution errors.

If ContinueOnError is false, operations are run inside of a transaction and changes are rolled back. If true commands are accepted even if failures occur and are not rolled back.

public bool RunSqlScript(string script,
	bool continueOnError,
	bool scriptIsFile)

Parameters

script

continueOnError

scriptIsFile


See also:

Class DataAccessBase

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic