How Connect Weka To Mssql Server
Solution 1:
I know it is late, but I had the same problem, and this took me a while to find the solution. I am almost sure you found the solution. In here, it is the second step. However, I am sharing my approach and hope you and other find this helpful.
First, you need to download jdbc driver from Microsoft as you did. For me: Here
Second, make sure you have enabled TCP/IP connection. More info is here and here,
Third, enable Remote connection in SQL server instance, See here.
Fourth, enable mix security mode in SQL, Here, You may need to restart the sql engine. Integrated security may alos work for you. In this case, see how to set parameters here, Add a user and give it access to db you want.
Fifth, Follow these steps in here or here, as you mentioned.
Sixth, Press this button,
go to this address 'C:\Program Files\Weka-3-8\weka\experiment' and select 'DatabaseUtils.props', You should have edited this file in Fifth and this path may be different on your computer.
Updated
You may need to copy the modified DatabaseUtils.props into wekafiles folder possibly located C:\Users\myUser\wekafiles for Weka 3.8 as suggested by Ivan
Seventh, Press this button and hope you can successfully connect to sql server.
Solution 2:
I installed JDBC Driver from msdn. But I couldn't find solution. Also I looked for the solutions which are defined in link below. Non of them is a problem in my case.
Here ise the error: exception: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host WAREHOUSE, port 1433 has failed. Error: "Connect timed out. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".


Post a Comment for "How Connect Weka To Mssql Server"