Using java.util.Connection and the correct SQL, you can create the corresponding java.sql.PreparedStatement (I do not use SQL Server, so you better write SQL yourself).
You can create java.sql.Blob using byte data read from your xls file.
Call .setBlob (Blob) on PreparedStatement and then execute it.
I have not written code for you, but this should be fundamental.
Kurley
source share