'Declaration
Public ReadOnly Property HasDDLCommands As System.Boolean
'Usage
Dim instance As VistaDBCommand Dim value As System.Boolean value = instance.HasDDLCommands
public System.bool HasDDLCommands {get;}
'Declaration
Public ReadOnly Property HasDDLCommands As System.Boolean
'Usage
Dim instance As VistaDBCommand Dim value As System.Boolean value = instance.HasDDLCommands
public System.bool HasDDLCommands {get;}
Query has DDL commands
public void CheckDDL(VistaDBConnection connection) { VistaDBCommand command = new VistaDBCommand(string.Empty, connection); //Check first query command.CommandText = "CREATE TABLE Orders (ID_Order Integer NOT NULL IDENTITY(1, 1) PRIMARY KEY, ID_Customer Integer)"; if(command.HasDDLCommands) Console.WriteLine("Query has DDL commands"); else Console.WriteLine("Query does not have DDL commands"); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2