AddNewAdoSource Method of the Datasets Object

This method adds a new data set connected to an ADO.NET data source. The method will create the columns in the data set according to the contents of the table, but to fill in the data itself you will need to call the UpdateFromDB method.

The column names will not include the primary key information. ABBYY FlexiCapture will cache the stored data.


Visual Basic .NET

Function AddNewAdoSource( _
    DataSetName As String, _
    AdoConnectionString As String, _
    Schema As String, _
    Table As String, _
) As DataSet


HRESULT AddNewAdoSource(
    BSTR       DataSetName,
    BSTR       AdoConnectionString,
    BSTR       Schema,
    BSTR       Table,
    IDataSet** Result


The name of the new data set. It must be unique in the collection.
Important! The name may not end on a digit.
It can contain only characters allowed in filenames and cannot be more than 255 characters in length.
The string that contains the connection parameters for the ADO.NET source used. Please refer to the Microsoft documentation to ADO.NET.
The data schema, usually specified as a prefix to the table name, for example, dbo in "dbo.Vendors".
The name of the table that should be connected, for example, Vendors in "dbo.Vendors".
[out, retval] A pointer to the IDataSet* variable that receives the interface pointer for the added data set.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.

See also


15.08.2023 13:19:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.