If you just want to import data from a database into excel you don't need JDBC to do that.[/QB]
The original post explicitly states "can any one help me how to connect MS excel file to java", so using Excel manually doesn't solve the problem.
If this was my problem I'd use POI, not JDBC, though.