Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 3648 |  Welcome, Guest!   Register  Login
  Home > Community Home >

Using JDBC with SQL 2008 ?

  Posted on: 2/2/2012 7:18:44 AM | Views: 15

Recommend an Articles | Recommended Articles | Search Resources | Community Home |


Advertisements


Hello,
I'm trying to use JDBC to use NetBeans and SQLExpress.
I find all kind of tutorials but they sometimes seems contradictory.
The package I download include 'sqljdbc.jar' and 'sqljdbc4.jar'
When I add one of them to the CLASSPATH (in NetBeans Tools > Librairies > Classpath).
And in my project's references: (in NetBeans: Projects > MyPorjects > Libraries > 'right click' > Properties > Add JAR/Folder > (select my file),
both lines
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
or
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
give me ClassNotFoundException com.microsoft.sqlserver.jdbc.SQLServerDriver.
 
I've also noticed that I can write
import com.microsoft.sqlserver.jdbc.SQLServerDriver;
but not
import com.microsoft.jdbc.sqlserver.SQLServerDriver;
This may be importa since ... Go to the complete details ...

Found interesting? Add this to:


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/19/2013 2:35:08 AM