I have found the following links for executing script using java i.e. How to execute sql-script file in java? . But it is specific to postgre and mysql.
I am looking for same solution for executing script in Sql server 2005. I am not acquinted with SQL Command Line. I have to make a batch containing series of calling different method of a class which also include the executing the script in the middle of batch. I googled it. But, i am not able to find the solution for my problem. Thanks in advance.