ScriptFactory.CreateNewBlankScript Method (, UIConnectionInfo, IDbConnection)
SQL Server 2008 R2
Creates and opens new blank script of type of editor that is implemented by the assembly. The new script is added to the miscellaneous project.
Assembly: SQLEditors.VS (in SQLEditors.VS.dll)
public Object CreateNewBlankScript(
ScriptType scriptType,
UIConnectionInfo ci,
IDbConnection liveCon
)
Parameters
- scriptType
- Type: ScriptType
The ScriptType of the script.
- ci
- Type: Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo
A UIConnectionInfo that can be passed in to the new editor. If null, then new editor doesn't have any connection associated with it.
- liveCon
- Type: System.Data.IDbConnection
A IDbConnection that can be associated with the new editor. Can be non-null only if ci parameter is non-null/non-empty. Should be in sync with connectionInfoList parameter. ci parameter is non-null. Should be in sync with ci parameter.