try {
Class cls = Class.forName("com.microsoft.sqlserver.jdbc.SQLJdbcVersion");
Field fieldlist[] = cls.getDeclaredFields();
for (Field fld: fieldlist)
{
fld.setAccessible(true);
out.append("<tr><td>" + fld.getName() + ":" + fld.getInt(cls)+
"</td></tr>");
}
}
catch (Throwable e)
{
log.error("problem getting sql driver version", e);
}
Class cls = Class.forName("com.microsoft.sqlserver.jdbc.SQLJdbcVersion");
Field fieldlist[] = cls.getDeclaredFields();
for (Field fld: fieldlist)
{
fld.setAccessible(true);
out.append("<tr><td>" + fld.getName() + ":" + fld.getInt(cls)+
"</td></tr>");
}
}
catch (Throwable e)
{
log.error("problem getting sql driver version", e);
}
No comments:
Post a Comment