Java – Generating the sample data on SQL Server No.87
In this blog, How to generate the sample data on SQL Server is shown. the key point is to use sqlcmd to run queries in Java. Contents ▼1. Generating the sample data using Java▼2. Prerequisites2-1. Installing SQL Server on Ubuntu2-2. Installing Microsoft JDBC Driver 8.2 for SQL Server2-3. Install Visual Studio Code2-4. Install Maven2-5. Create a query to create a database and a table▼3. Generate a sample data using java3-1. Create an Apache Maven project3-2. Remove the existed both App.java and AppTest.java3-3. Start Visual Studio Code3-4. Update pom.xml as below and save it (Ctrl+S)3-5. Connect to MySQL and execute select query3-6. Results of this code3-7, Check the generated data▼4. Reference▼1. … Continue reading “Java – Generating the sample data on SQL Server No.87”