Send feedback on this topic.
Teradata.Client.Provider
RefreshSchema Method



Teradata.Client.Provider Namespace > TdCommandBuilder Class : RefreshSchema Method
Retrieves the metadata used to generate DML (INSERT, UPDATE and DELETE) statements.
Syntax
'Declaration
 
Public Overrides NotOverridable Sub RefreshSchema() 
'Usage
 
Dim instance As TdCommandBuilder
 
instance.RefreshSchema()
public override void RefreshSchema()
public:
void RefreshSchema(); override 
Exceptions
ExceptionDescription
The DataAdapter property is not set, SelectCommand of the associated TdDataAdapter is not set or no TdConnection is associated with DataAdapter.SelectCommand.
The TdCommandBuilder is closed/disposed.
Remarks
The invocation of RefreshSchema method can result in one or more calls to the Advanced SQL Engine to retrieve metadata (Column and Table information). The metadata is cached in order to minimize roundtrips to the Advanced SQL Engine. The cache is purged only when the DataAdapter property is set or the RefreshSchema method is called. Therefore, you should call RefreshSchema when there are changes the to the SelectCommand property of associated TdDataAdapter.
Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdCommandBuilder Class
TdCommandBuilder Members