How do I connect to a SQL Server database from in one server from a Springboot app in another server?
The SQL Server server is running windows. The Springboot app is on a Linux box.
I'm already able to make http calls and SSH into other machines, I now need to be able to run simple SQL commands on an SQL database on another machine.
How can I achieve this?
Thanks.
If you want "run simple SQL commands" Java, you use the SQL Server JDBC Driver .
The info in this article does the trick:
https://www.codejava.net/frameworks/spring-boot/connect-to-microsoft-sql-server-examples
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.