TdDataAdpater fills a DataSet with the data from the Teradata Database and conversely updates the Teradata Database with the data in a DataSet.
The following example fills a DataSet with result set(s) returned from Teradata Database.
public DataSet CreateDataSet(String connectionString, String commandText)
{
TdDataAdapter adapter = new TdDataAdapter(connectionString, commandText);
DataSet ds = new DataSet();
adapter.Fill(ds);
return ds;
}
Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2