• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Configure JDBC Server Url

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
Can anyone help me configuring sql url?
The purpose is to connect one app that works online to the web server database
Thanks
 
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry I cannot answer you exactly, because it depends on the type of database system you want to connect to.
But this may help you:

JDBC's database connection URLs for common databases:

http://www.codejava.net/java-se/jdbc/jdbc-database-connection-url-for-common-databases
 
Lipe Shtogu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SQL Server 2008
 
Marshal
Posts: 4499
572
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on which JDBC driver you are using. Here are two that I have worked with - there may be others:

SourceForge Driver
driver classname: net.sourceforge.jtds.jdbc.Driver
URL: jdbc:jtds:sqlserver://server.domain


Microsoft Driver
driver classname: com.microsoft.sqlserver.jdbc.SQLServerDriver
URL: jdbc:sqlserver://server.domain
reply
    Bookmark Topic Watch Topic
  • New Topic