собственно сабж.
ЗЫ: нужно узнать есть в базе столбец с заданным именем?
Me.OleDbDataAdapter1.Fill(Me.DataSet11)
Dim ColunName = Me.DataSet11.Tab1.Columns(1).ToString
Public Function GetOleDbSchemaTable(ByVal schema As System.Guid, ByVal restrictions() As Object) As System.Data.DataTable
Member of: System.Data.OleDb.OleDbConnection
Summary:
Returns schema information from a data source as indicated by a GUID, and after applying the specified restrictions.
Parameters:
restrictions: An System.Object array of restriction values. These are applied in the order of the restriction columns. That is, the first restriction value applies to the first restriction column, the second restriction value applies to the second restriction column, and so on.
schema: One of the System.Data.OleDb.OleDbSchemaGuid values that specifies the schema table to return.
Return Values:
A System.Data.DataTable containing the requested schema information.
Exceptions:
System.ArgumentException: The specified schema rowset is not supported by the OLE DB provider.or The schema parameter contains a value of System.Data.OleDb.OleDbSchemaGuid.DbInfoLiterals and the restrictions parameter contains one or more restrictions.
System.InvalidOperationException: The System.Data.OleDb.OleDbConnection is closed.
System.Data.OleDb.OleDbException: The specified set of restrictions is invalid.
Public Overridable Function GetSchema(ByVal collectionName As String) As System.Data.DataTable
Member of: System.Data.Common.DbConnection
Сейчас этот форум просматривают: AhrefsBot и гости: 83