|
hi all,
i am creating a method that accepts a String parameter ,a SqlConnection type paremeter and a String parameter for storing the name of table,like this
public int validation(String str,SqlConnection sqlcon,String table_name)
{
...
...
}
This method is created in a ClassLibrary file,that i will use it in my main project.From main project this validation() method will be called to check whether the string 'str' passed is of specified type as in the database table's particular field.
So,how to get the datatype of a field of a particular table in a particular database?
|