1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00

Add README for main Java and Node.js folders

This commit is contained in:
Andrea Lam
2016-11-18 12:39:56 -08:00
parent 7848889275
commit 8117c04590
3 changed files with 15 additions and 78 deletions

View File

@ -1,18 +1,9 @@
# Connect to SQL Database by using Java with JDBC on Windows
# Developing applications with Java and SQL Server
[Java code sample] (sample_java.java) that you can use to connect to Azure SQL Database. The Java sample relies on the Java Development Kit (JDK) version 8. The sample connects to an Azure SQL Database by using the JDBC driver.
Pick a platform below to get started:
* [macOS](https://github.com/Microsoft/sql-server-samples/tree/master/samples/tutorials/java/macos)
* [RHEL](https://github.com/Microsoft/sql-server-samples/tree/master/samples/tutorials/java/rhel)
* [Ubuntu](https://github.com/Microsoft/sql-server-samples/tree/master/samples/tutorials/java/ubuntu)
* [Windows](https://github.com/Microsoft/sql-server-samples/tree/master/samples/tutorials/java/windows)
## Requirements
- [Microsoft JDBC Driver for SQL Server - SQL JDBC 6.0](http://www.microsoft.com/download/details.aspx?displaylang=en&id=11774).
- Download the latest JDBC Driver 6.0 Package *sqljdbc_6.0.7507.100_enu.exe* OR *sqljdbc_6.0.7507.100_enu.tar.gz*
- For guidance on which jar file to use based on your Java version, please see the [System Requirements for the JDBC Driver](https://msdn.microsoft.com/en-us/library/ms378422(v=sql.110).aspx)
- Any operating system platform that runs [Java Development Kit 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html).
- An existing database on SQL Azure. See the [Get Started topic](http://azure.microsoft.com/documentation/articles/sql-database-get-started/) to learn how to create a sample database and retrieve your connection string.
## Create a database, retrieve your connection string
The Java sample relies on the AdventureWorks sample database. If you do not already have AdventureWorks, you can see how to create it at the following topic: [Create your first Azure SQL Database](http://azure.microsoft.com/documentation/articles/sql-database-get-started/)
Please visit our [getting started tutorials](https://www.microsoft.com/en-us/sql-server/developer-get-started/)