Determining size of recordset column
Does anyone know if it is possible to determine the size of a dataset column at runtime? I am using ADO.NET with System.Data.SqlClient and System.Data.OracleClient
I need to output the results of a query, and need to know the maximum size (characters) of each column in order to format the output correctly. The ds.Tables[0].Columns[i].MaxLength property always seems to return 0, so I can't use that.
Cheers,
Gary
|