TdClob represents a CLOB (Character Large Object) data type instance.
It is used to retrieve CLOB data from the Advanced SQL Engine.
The following example displays a TdClob representing a resume.
public void DisplayEmployeeResume(String employeeId, TdConnection cn)
{
TdCommand cmd = new TdCommand(“Select Resume from Employee Where ID = ?”, cn);
// Initialize the parameter with employee ID.
TdParameter id = cmd.CreateParameter();
id.ParameterName = “EmployeeID”;
id.Direction = System.Data.ParameterDirection.Input;
id.Value = employeeId;
cmd.Parameters.Add(id);
// Execute the Query
using (TdDataReader reader = cmd.ExecuteReader())
{
if (reader.Read())
{
// Retrieve the resume
using (TdClob resume = reader.GetTdClob(0))
{
DisplayResume(resume);
}
}
}
// Dispose of the command
cmd.Dispose();
}
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019