0

我正在做一个 Java SWING 应用程序,它必须访问 MS SQLSERVER 2008 中的数据库。因为它很简单,而且我在 MySQL 中完成了,我也尝试了相同的方法。但它失败了。所以我尝试了一些教程并最终在这里编写了一个代码......

从 Java 连接到 SQL Server 2008

所有错误都已清除,但我仍然不满意,我在控制台输出区域中收到一条评论

**# JRE version: 7.0_25-b17
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V  [jvm.dll+0xf66dc]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\KaNNaN\Documents\NetBeansProjects\DBCollection\hs_err_pid4908.log
#
#If you would like to submit a bug report, please visit:
#http://bugreport.sun.com/bugreport/crash.jsp
#
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)**

Database name : master
Connection String : Data Source=KANNAN-PC\SQLEXPRESS;Initial Catalog=master;Integrated     Security=True
Owner : sa

帮助我解决这个问题并连接到 SQLSERVER 数据库,或者向我推荐一些好的教程。

4

0 回答 0