This article introduces you to a step-by-step process for developing Java (or JFC) based applications with Microsoft SQL Server as the database, using NetBeans IDE.
Please be aware that you need to modify the driver and connection information according to your requirements. You can press F5 to execute your application. Once it completes successfully, you must see that a new text file exists named “query1.lst” with exactly the same information you find in the table.
If you receive any errors in connecting to Microsoft SQL Server, please refer to my first article in this series.