1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00
Files
sql-server-samples/samples/connect
Philippe Marschall 951bae3040 Update Java samples
The Java samples have quite a lot of room for improvement.

I changed the following:

 - make the code compile
 - update the readme to point to the latest driver
 - remove one leading tab from every line
 - remove redundant imports
 - use Java 7 try-with-resources
 - release database objects as early as possible
 - propagate exceptions
 - use bind parameters to avoid SQL-injection vulnerabilities when the
   code is copy and pasted and adjusted
  - I had to guess on some of the parameter types since I didn't have a
    schema. I had a look at ql_in-memory_oltp_sample.sql. Executable
    samples with a continuous integration build would be a nice future
    improvement.
2016-08-07 12:08:30 +02:00
..
2016-07-18 17:09:13 -07:00
2016-08-07 12:08:30 +02:00
2016-07-18 17:09:13 -07:00
2016-07-18 16:08:26 -07:00
2016-07-25 00:48:25 -07:00
2016-07-18 17:09:13 -07:00
2016-07-25 00:52:14 -07:00

Database connection samples

Contains samples that show how to connect to Microsoft SQL databases, including SQL Server, Azure SQL Database, and Azure SQL Data Warehouse from different langauges like:

  • Python
  • .Net
  • Java
  • Ruby
  • Node.js