You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.DB2.md
+39-6Lines changed: 39 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,12 @@
2
2
3
3
## Build the sample
4
4
5
-
Before you build the sample, you must edit `build.properties` for the appropriate path locations:
5
+
Samples [advanced_queries](examples/advanced_queries), [embedded_in_dat](examples/embedded_in_dat) and
6
+
[studio_integration](examples/studio_integration) do not need to be compiled, so you can skip this
7
+
section.
8
+
9
+
Before you build the [oil](examples/oil) sample, you must edit `build.properties` for the appropriate path locations:
6
10
7
-
* If you want to run the sample with MySQL, `mysql.jdbc.connector.path` should point to your JDBC driver location.
8
11
* If you want to run the sample with IBM DB2, `db2.jdbc.connector.path` should point to your JDBC driver location.
9
12
*`opl.home` should point to your OPL home, unless you have a `CPLEX_STUDIO_DIR128` set. (this variable should exists if you installed on a Windows machine).
10
13
@@ -38,19 +41,41 @@ Run the following SQL script to create and populate the example database:
38
41
db2 -tvmf data/oil_db2.sql
39
42
```
40
43
41
-
Before you run the sample, you need to edit `build.properties` to make `db2.jdbc.connector.path` point
42
-
to your DB2 jdbc driver.
43
44
44
45
You can download the DB2 jdbc driver [here](http://www-01.ibm.com/support/docview.wss?uid=swg21363866).
45
46
Note that if you installed DB2 Express-C, your JDBC driver is `db2jcc4.jar`
46
47
in `<DB2 installdir>/SQLLIB/java`.
47
48
48
-
Edit `data\db_db2.xml` for your JDBC connection string and credentials.
49
+
Depending on the sample you run, you need to edit, `build.properties` to make `db2.jdbc.connector.path` point
50
+
to your DB2 jdbc driver.
51
+
52
+
Depending on the sample you run, you need to edit `build.properties` to make
53
+
`db2.jdbc.connector.path` point to your DB2 jdbc driver (i.e. db2jcc4.jar).
54
+
55
+
On samples like [advanced_queries](examples/advanced_queries), [embedded_in_dat](examples/embedded_in_dat),
56
+
you will need to edit your `.dat` so that the following line points to where your jdbc driver resides:
Copy file name to clipboardExpand all lines: README.MySQL.md
+28-3Lines changed: 28 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,13 @@
2
2
3
3
## Build the sample
4
4
5
-
Before you build the sample, you must edit `build.properties` for the appropriate path locations:
5
+
Samples [advanced_queries](examples/advanced_queries), [embedded_in_dat](examples/embedded_in_dat) and
6
+
[studio_integration](examples/studio_integration) do not need to be compiled, so you can skip this
7
+
section.
8
+
9
+
Before you build the [oil](examples/oil) sample, you must edit `build.properties` for the appropriate path locations:
6
10
7
11
* If you want to run the sample with MySQL, `mysql.jdbc.connector.path` should point to your JDBC driver location.
8
-
* If you want to run the sample with IBM DB2, `db2.jdbc.connector.path` should point to your JDBC driver location.
9
12
*`opl.home` should point to your OPL home, unless you have a `CPLEX_STUDIO_DIR128` set. (this variable should exists if you installed on a Windows machine).
10
13
11
14
The build file, `build.xml`, imports the build file from the OPL samples,
@@ -57,7 +60,29 @@ Once the driver is download and extracted, edit property `jdbc.connector.path` i
57
60
to include the MySQL Connector/J `.jar` (should look like `mysql-connector-java-5.1.40-bin.jar`
58
61
in your MySQL Connector/J extracted diretory)
59
62
60
-
Edit `data\db_mysql.xml` for your JDBC connection string and credentials.
63
+
64
+
Depending on the sample you run, you need to edit `build.properties` to make
65
+
`mysql.jdbc.connector.path` point to your MySQL jdbc driver (i.e. mysql-connector-java-5.1.40-bin.jar).
66
+
67
+
On samples like [advanced_queries](examples/advanced_queries), [embedded_in_dat](examples/embedded_in_dat),
68
+
you will need to edit your `.dat` so that the following line points to where your jdbc driver resides:
Copy file name to clipboardExpand all lines: README.SQLServer.md
+50-12Lines changed: 50 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,13 @@
2
2
3
3
## Build the sample
4
4
5
-
Before you build the sample, you must edit `build.properties` for the appropriate path locations:
5
+
Samples [advanced_queries](examples/advanced_queries), [embedded_in_dat](examples/embedded_in_dat) and
6
+
[studio_integration](examples/studio_integration) do not need to be compiled, so you can skip this
7
+
section.
6
8
7
-
* If you want to run the sample with MySQL, `mysql.jdbc.connector.path` should point to your JDBC driver location.
8
-
* If you want to run the sample with IBM DB2, `db2.jdbc.connector.path` should point to your JDBC driver location.
9
+
Before you build the [oil](examples/oil) sample, you must edit `build.properties` for the appropriate path locations:
10
+
11
+
*`sqlserver.jdbc.connector.path` should point to your JDBC driver location.
9
12
*`opl.home` should point to your OPL home, unless you have a `CPLEX_STUDIO_DIR128` set. (this variable should exists if you installed on a Windows machine).
10
13
11
14
The build file, `build.xml`, imports the build file from the OPL samples,
@@ -20,26 +23,50 @@ The example is automatically compiled with the run Ant targets is invoked.
20
23
21
24
## Setup the sample database
22
25
23
-
To run the sample with MS SQL Server, you need to install MS SQL Server.
24
-
25
-
In a <em>Commnad Prompt</em> window:
26
+
To run the sample with MS SQL Server, you need to install Microsoft SQL Server.
27
+
After it is installed, you are ready to setup the sample database.
26
28
27
-
Provided your sql server instance name is SQLEXPRESS, create database using:
29
+
To create a sample database, open a <em>Commnad Prompt</em> window, and Provided your
30
+
SQL Server instance name is SQLEXPRESS, create database using:
28
31
29
32
```
30
33
C:\>sqlcmd -S .\SQLEXPRESS -i data\oil_mssql.sql
31
34
```
32
35
33
-
Before you run the sample, you need to edit `build.properties` to make `sqlserver.jdbc.connector.path` point
34
-
to your MSSQL server jdbc driver (i.e. mssql-jdbc-7.2.2.jre8.jar)
36
+
Before you run the sample, you need to download the [Microsoft JDBC Driver for SQL Server](https://docs.microsoft.com/fr-fr/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-2017).
37
+
38
+
Once your download finished, decompress the archive. The archive contains jar files that
39
+
look like `mssql-jdbc-7.2.2.jre8.jar`.
40
+
41
+
42
+
Depending on the sample you run, you need to edit `build.properties` to make
43
+
`sqlserver.jdbc.connector.path` point to your MSSQL server jdbc driver (i.e. mssql-jdbc-7.2.2.jre8.jar).
44
+
45
+
On samples like [advanced_queries](examples/advanced_queries), [embedded_in_dat](examples/embedded_in_dat),
46
+
you will need to edit your `.dat` so that the following line points to where your jdbc driver resides:
35
47
36
-
Edit `data\db_mssql.xml` for your JDBC connection string and credentials.
0 commit comments