简体   繁体   中英

Get sql data type fom column c#

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.

您可以从datadeader访问该属性

    sqlReader.GetFieldType(intPositionalFieldIndex)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM