Executes a SQL script using the given connection string.

Namespace: CodeSmith.BaseTemplates
Assembly: CodeSmith.BaseTemplates (in CodeSmith.BaseTemplates.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
public static ScriptResult ExecuteScript(
	string connectionString,
	string script
)
Visual Basic
Public Shared Function ExecuteScript ( 
	connectionString As String,
	script As String
) As ScriptResult

Parameters

connectionString
Type: System..::..String
script
Type: System..::..String

Return Value

Type: ScriptResult

See Also