Click or drag to resize

IDatabaseDataSourceType Property

Data source type - c-tree or ODBC type

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
EDBType DataSourceType { get; }

Property Value

Type: EDBType
EDBType – the data source type
Examples

Get the type of the current data source

VB
dim objdb
set objdb =  CreateObject("superofficedb.database")
If Not (objDB is Nothing) Then
    enDBMSMySQL = 13
    objdb.login  "<userid>", "<password>" ' log in to the database
    i  = objdb.datasourcetype

    if i = enDBMSMySQL then
        msgbox "we are running an sqlserver database"
    else
        msgbox "we are not running an sqlserver database"
    end  if
else
    msgbox "unable to connect to database"
end if
set objso = nothing

See Also