Executes a SQL script using the given connection string.
Namespace: CodeSmith.BaseTemplatesAssembly: 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, SqlInfoMessageEventHandler infoMessageHandler ) |
Visual Basic |
---|
Public Shared Function ExecuteScript ( connectionString As String, script As String, infoMessageHandler As SqlInfoMessageEventHandler ) As ScriptResult |
Parameters
- connectionString
- Type: System..::..String
- script
- Type: System..::..String
- infoMessageHandler
- Type: System.Data.SqlClient..::..SqlInfoMessageEventHandler