Method

ODBCDatabase.GetInfo


Warning

This item was deprecated in version 2019r2. Please use ODBCDatabase.ConnectionInfo as a replacement.

Description

Returns general information about the driver and data source associated with a connection. Returns a Variant that contains either a String or an Integer, based on the attribute.

Notes

ODBCConstant contains integer values that you can use with this function.


Sample code

Check if the connected ODBC database supports stored procedures:

Dim db As New ODBCDatabase

If Not db.Connect Then
  MsgBox("Error: " + db.ErrorMessage)
End If

MsgBox(db.GetInfo(ODBCConstant.SQL_PROCEDURES))

Compatibility

All project types on all supported operating systems.