Hi,
If the question is regarding SQLServer 2000 database particularly, then i think this is a wrong place to post this question. If it is regarding
JDBC, then the solution would be to use ResultSetMetaData Interface.
The sample code to get the column Data type would be:
ResultSet rs = st.executeQuery("Select * from student");
ResultSetMetaData rsmd = rs.getMetaData();
String col_dtype = rsmd.getColumnTypeName(1);
Variable col_dtype will have the column data type for the first column of student table.
Similarly, you can put the last line in a loop to get the column datatype for all columns.