Get sql data type fom column c#

147 Views Asked by At

I'm using Microsoft.SqlServer.Dac.Compare to compare two database and create a custom script.

My problem is to get the sql data type of the column from the object TsqlObject.

I can acess at lot proprerties from the column except the sql data type.

1

There are 1 best solutions below

0
On

You can access the property from the datadeader

    sqlReader.GetFieldType(intPositionalFieldIndex)