method GetColumns() that I expalin below
1-with
Code: Select all
GetStatement.ExecuteQuery(Format('select c.colid, c.name, c.type,
c.prec, c.scale, c.colstat,' + ' c.status, c.iscomputed from syscolumns
c inner join' + ' sysobjects o on (o.id = c.id) where o.name = ''%s''
order by
colid',[TableNamePattern])) do
Because of this reason program asssumes that o.name parameter is a
column and program crashes.
2- Also on the same unit and the same method, I have another problem.
With
Code: Select all
Result.UpdateShortByName('DATA_TYPE',Ord(ConvertODBCToSqlType(GetShortByName('DATA_TYPE'))));
Code: Select all
Result.UpdateNullByName('DATA_TYPE');