Get sql data type fom column c#

104 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 answers

0
Federico Garagiola On

You can access the property from the datadeader

    sqlReader.GetFieldType(intPositionalFieldIndex)