Unable to connect to SQLServer on server using TCP/IP and no encryption
wadiachmed
New Altair Community Member
Hello,
I am learning to use Rapidminer Studio 10.1 and trying to connect to SQL Server database on a server over TCP/IP, SQL Server version 2019, have set the connection with correct information such as the database username and password, host with instancename, port, and database name , as well as adding parameter encrypt = false in advanced tab, but the result is unable to connect with output message: Login failed for user 'performance_dashboard_read'
I use the DBeaver too for querying the data and database objects without connection issue. This tool uses JDBC driver as well as Rapidminer.
Would you please advise what parameters are missing from my settings, parameters, or drivers?
Thank you in advanced.
Best regards,
Iswadi
I am learning to use Rapidminer Studio 10.1 and trying to connect to SQL Server database on a server over TCP/IP, SQL Server version 2019, have set the connection with correct information such as the database username and password, host with instancename, port, and database name , as well as adding parameter encrypt = false in advanced tab, but the result is unable to connect with output message: Login failed for user 'performance_dashboard_read'
I use the DBeaver too for querying the data and database objects without connection issue. This tool uses JDBC driver as well as Rapidminer.
Would you please advise what parameters are missing from my settings, parameters, or drivers?
Thank you in advanced.
Best regards,
Iswadi
Tagged:
0
Best Answer
-
Hi,
Can you check if SQL Server Authentication Mode is allowed for the database in Microsoft SQL Server Management Studio?
Greetings,
Jonas
0
Answers
-
Hi,
Can you check if SQL Server Authentication Mode is allowed for the database in Microsoft SQL Server Management Studio?
Greetings,
Jonas
0 -
Hi @jwpfau
Thank you for your response.
The SQL Server Authentication Mode is allowed.
The database is a custom instance name.
0 -
Hi,
can you share the ~/.RapidMiner/rapidminer-studio.log file?
The error message looks like it's still trying to use Windows authentication mode, which would require additional native libraries on the path.
If you have access to commercial support, it's probably easier to contact them, since i have little experience with mssql.
Greetings,
Jonas
1 -
Hi Jonas @jwpfau,
I will check and share it tonight, since the laptop is left at my home.
Now I am at workplace that using another computer.
My license is an educational.
Thank you.
Best regards
Iswadi1 -
Hi @jwpfau,
Here is my rapidminer-studio log file.
I have no ide on which line that identifying the parameter or other library caused the failure to connect to SQL Server database.
Best regards,
Iswadi
0 -
Hi,
i only found this thread on the microsoft forum:
https://learn.microsoft.com/en-us/answers/questions/1030610/unable-to-connect-sql-express-db-instance-via-jdbc
Does the password contain backslashes?
As an alternative you could also try the jdts driver.
Greetings,
Jonas0 -
Hi Jonas,
The password doesn't contain a backslash.
It contains these symbols *#!.
I put as it it on password field in Connection Editor, without additional escape character.
Tried to add more backslash on instance name in Host field, still no succeed
Thanks0 -
Hi,
this might be the issue .
Can you try to wrap your password in curly braces? i.e. {your_password}
The MSSQL jdbc driver has some weird rules about passwords, not sure why they not just escape them:a login or password must not contain the following characters: [] {}() , ; ? * ! @.
Greetings,
Jonas0 -
Hi
I tried to add curly braces in password field
It still didn't connect.
Thanks Jonas.
I'll try to contact customer support too.
0 -
Hi,
another thing, are you sure that the sqlprod instance runs on port 1433?
Otherwise you might want to use a custom jdbc connection url without the :1433 partFor optimal connection performance, you should set theportNumber
when you connect to a named instance. This will avoid a round trip to the server to determine the port number. If both aportNumber
andinstanceName
are used, theportNumber
will take precedence and theinstanceName
will be ignored.
https://learn.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15
Greetings,
Jonas
0 -
Hi Jonas,
Yes it is running port 1433, using default of SQL Server port.
I can connect to this database using other software, named DBeaver using jdbc driver too. The DBeaver doesn't need to set property encrypt=false to connect to the SQL Server
Regards,
Iswadi0