Jump to content
We've recently updated our Privacy Statement, available here ×

Configure jdbc datasource for SQL server


apoorv7512

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

I followed the steps that you have mentioned in the mail.

I was getting the connection as failed. I am sending the error log file below.

 

Please consider the following:

1.) We have been able to configure the connection in I-report also. It works fine.

2.) I have configured a system dsn and user dsn connection as 'sqlserverconnection'

3.) The database that needs to be accessed is 1Redx

4.) The server address is 74.127.8.180

5.) I have windows authentication. The username is VDS-apoorv\Administrator

 

I sought to change the entries as follows:

com.microsoft.sqlserver.jdbc.sqlserverconnection

 

jdbc:sqlserver://74.127.8.180:1433:databasename=1Redx;

 

I am still getting an error.

 

where am I making a mistake?

 

 

 

Link to comment
Share on other sites

apoorv7512,

Your posting says that you are using the class "com.microsoft.sqlserver.jdbc.sqlserverconnection".

Your log says that it's looking for the class "com.mysql.jdbc.sqlserverconnection". So it looks like you have not configured things as you thought you did.

The correct class is "com.microsoft.sqlserver.jdbc.SQLServerDriver", and it's case sensitive as all Java classes are.

I wrote a tutorial to help with connecting to SQL Server. Take a look at the attached doc to see if it helps.

Regards,
Matt

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...