public static string GetColumnDataType( SqlConnection connection, string tableName, string columnName )
Parameters
- connection
- the sql connection
- tableName
- Name of the table to check for
- columnName
- Name of the column to check data type for
Return Value
Data type of column if it exist otherwise empty string