The ScriptUtility type exposes the following members.

Constructors

  NameDescription
Public methodScriptUtility()()()()
Initializes a new instance of the ScriptUtility class
Public methodScriptUtility(String, String)
Initializes a new instance of the ScriptUtility class

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecuteScript()()()()
Executes the script.
Public methodStatic memberExecuteScript(String, String)
Executes a SQL script using the given connection string.
Public methodStatic memberExecuteScript(String, String, SqlInfoMessageEventHandler)
Executes a SQL script using the given connection string.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyConnectionString
The connection string to use when executing the script.
Public propertyScript
The script to execute.

Events

  NameDescription
Public eventScriptInfoMessage

See Also