I have the need of having to cancel some tables linked to the main table, 5 of which I know the name at first, because they are created with the main table, but the others can be created by the user depending on the needs that are appropriate to the main table changing only the suffix.
example
log
Log_Dxcc_Award
Log_Iota_Award
etc.
in visual studio with visual basic use this function in oledb
but here and sql lite do not know how to get the database schema
example
log
Log_Dxcc_Award
Log_Iota_Award
etc.
in visual studio with visual basic use this function in oledb
but here and sql lite do not know how to get the database schema
B4X:
Public Function GetSchemaTable(ByVal connectionString As String) As DataTable
Using connection As New OleDb.OleDbConnection(connectionString)
connection.Open()
Dim schemaTable As DataTable = _
connection.GetOleDbSchemaTable(OleDb.OleDbSchemaGuid.Tables, _
New Object() {Nothing, Nothing, Nothing, "TABLE"})
Return schemaTable
End Using
End Function