从Java连接到MSSQLServer 2008

时间:2013-08-02 00:30:12

标签: java sql-server database sql-server-2008

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

Connecting to SQL Server 2008 from Java

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

**# 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数据库或者给我一些好的教程。

0 个答案:

没有答案