sql_server_express_connnection_tutorial
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sql_server_express_connnection_tutorial [2024/01/26 11:13] – [Troubleshooting] amyw | sql_server_express_connnection_tutorial [2024/01/26 12:03] (current) – [Connect to SQL Server Express database with JDBC Driver in MIStudio] amyw | ||
|---|---|---|---|
| Line 141: | Line 141: | ||
| database class name: com.microsoft.sqlserver.jdbc.SQLServerDrive | database class name: com.microsoft.sqlserver.jdbc.SQLServerDrive | ||
| database url: jdbc: | database url: jdbc: | ||
| + | or with parameters, such as: jdbc: | ||
| username: the username you created in SQL server Express | username: the username you created in SQL server Express | ||
| password: the password of the username you created in the SQL server Express | password: the password of the username you created in the SQL server Express | ||
| - | Troubleshooting: | + | |
| - | + | ||
| - | if you get error in Mistudio console when you try to connect to the database such as: " | + | |
| - | + | ||
| - | add “encrypt=true; | + | |
| - | + | ||
| - | jdbc: | + | |
| - | + | ||
| - | | + | |
| Line 160: | Line 153: | ||
| - | Example MIStudio error: “TCP could be blocked by a firewall. No connection for user username”. | + | ==** Example MIStudio error: “TCP could be blocked by a firewall. No connection for user username”.== |
| check if TCP/IP port is set in SQL server Configuration Management; if TCP/IP port is disabled in Windows Firewall; if SQL Service Browser process is running. | check if TCP/IP port is set in SQL server Configuration Management; if TCP/IP port is disabled in Windows Firewall; if SQL Service Browser process is running. | ||
| - | Example MIStudio error: " | + | |
| + | |||
| + | ==** Example MIStudio error: " | ||
| Line 170: | Line 165: | ||
| - | Example SSMS Log file error: “login failed for user " | + | ==** Example SSMS Log file error: “login failed for user " |
| Check if the username and password can login to SSMS and can do reading and writing in the database. | Check if the username and password can login to SSMS and can do reading and writing in the database. | ||
sql_server_express_connnection_tutorial.1706285601.txt.gz · Last modified: by amyw
