I�ve finally managed to connect to SQL Server but the problem is that the stored procedure is not found whereas it does exists, is there anything that I might have omitted that�s causing this type of error, I�ve specified the full path but no success, --------------------------------------------------------------------------- my code looks like this..
import java.sql.*; import com.microsoft.jdbc.sqlserver.*; import com.microsoft.jdbc.*; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; /** * Microsoft SQL Server JDBC */ public class PhoneBookDetails { // Get connection // DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver()); public Connection getConnection(){ Connection connection=null; try{ String driverName = "com.microsoft.jdbc.sqlserver.SQLServerDriver"; Class.forName(driverName); String username="fido"; String password="odif"; String databasename="RSAPORTAL"; String url="jdbc:microsoft:sqlserver://SERVERNAME:0000; databasename= data_base_name;username=username;password=password"; connection=DriverManager.getConnection(url,username,password);