简体   繁体   中英

How do I connect to a SQL Server database from in one server from a Springboot app in another server?

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 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM