Dynamicweb 8 Documentation
Database Class Methods


For a list of all members of this type, see Database members.

Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic)AddBooleanParamAdds boolean parameter to SQL statement.  
Public Methodstatic (Shared in Visual Basic)AddDateTimeParamAdds DateTime parameter to SQL statement.  
Public Methodstatic (Shared in Visual Basic)AddDoubleParamAdds double parameter to SQL statement.  
Public Methodstatic (Shared in Visual Basic)AddInt16ParamAdds Int16 parameter to SQL statement.  
Public Methodstatic (Shared in Visual Basic)AddInt32ParamAdds Int32 parameter to SQL statement.  
Public Methodstatic (Shared in Visual Basic)AddStringParamAdds string parameter to SQL statement.  
Public Methodstatic (Shared in Visual Basic)CreateAdapterCreates a DataAdapter based on the database type of the solution.  
Public Methodstatic (Shared in Visual Basic)CreateCommandBuilderCreates a CommandBuilder based for the specified DataAdapters.  
Public Methodstatic (Shared in Visual Basic)CreateConnectionOverloaded. Creates and opens a database connection to the default database  
Public Methodstatic (Shared in Visual Basic)CreateDataReaderOverloaded. Creates a DataReader by sending the sql to the Connection and build an IDataReader.  
Public Methodstatic (Shared in Visual Basic)CreateDataSetOverloaded. Creates a System.Data.DataSet with data returned by the passed SQL statement.  
Public Methodstatic (Shared in Visual Basic)CreateDataTableOverloaded. Creates a System.Data.DataTable with data returned by the passed SQL statement.  
Public Methodstatic (Shared in Visual Basic)DatabaseExistsHelper method to determine whether the physical database with the given name exists on the disk. This will always return true for solutions using MS SQLServer.  
Public Methodstatic (Shared in Visual Basic)ExecuteNonQueryOverloaded. Executes an SQL statement against the Connection object of a .NET Framework data provider, and returns the number of rows affected.  
Public Methodstatic (Shared in Visual Basic)ExecuteScalarOverloaded. Executes the query, and returns the first column of the first row in the resultset returned by the query. Extra columns or rows are ignored.  
Public Methodstatic (Shared in Visual Basic)GetAddedIdentityKeyOverloaded. The function returns the identity of the last added row to the database  
Public Methodstatic (Shared in Visual Basic)SqlBoolOverloaded. Returns a Boolean in the appropriate database format.  
Public Methodstatic (Shared in Visual Basic)SqlDateOverloaded. Returns a date in the appropriate database format.  
Public Methodstatic (Shared in Visual Basic)SqlDateFormatStringEscapes a date formatting character for use in SQL DatePart statements depending on database type (Access or SQL-Server)  
Public Methodstatic (Shared in Visual Basic)SqlDatePartReturns a DatePart abbreviation for the appropriate database.  
Public Methodstatic (Shared in Visual Basic)SqlEscapeInjectionOverloaded. Strips a string of all SQL-commands used to create SQL-injection.  
Public Methodstatic (Shared in Visual Basic)SqlStringOverloaded. Returns a string quoted with '' for Access and N'' (Unicode) for SQL-Server.  
Public Methodstatic (Shared in Visual Basic)SqlWeekDayReturns a string in the appropriate database format.  
Public Methodstatic (Shared in Visual Basic)TableExistsHelper method to determine whether a table with the given name exists in the given database.  
Top
See Also

Reference

Database Class
Dynamicweb Namespace

Send Feedback