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, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic