kishorepalle Posted April 9, 2009 Share Posted April 9, 2009 Hello members,I am new to reporting environment. I started playing around with Jasper as part of learning curve. I am using iReport 3.5.0 (latest build) and after much effort, I could connect to SQL 2000 database and publish some reports.The thing I have a problem with is, I would like to connect to SQL Server 2008 database (installed locally) but I don't see the JDBC driver that reads anything for SQL Server 2008 under the JDBC Driver drop down list box. (please refer to the attached screenshot).Any help you can extend on how to connect to the SQL Server 2008 is highly appreciated.ThanksKishore Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted April 9, 2009 Share Posted April 9, 2009 The list just shows a list of common JDBC drivers, not all the available ones. The combobox is editable, you can write in the name of the correct driver for Microsoft SQL server 2008.Be sure you have the driver jar (sqljdbc.jar) in the iReport classpath (Tools->Options->ireport->classpath)The driver is available here:http://www.microsoft.com/downloads/details.aspx?familyid=99B21B65-E98F-4A61-B811-19912601FDC9&displaylang=enDriver name: com.microsoft.sqlserver.jdbc.SQLServerDriverJDBC url: jdbc:sqlserver://HOSTNAME:1433;databaseName=DATABASENAME;Giulio Link to comment Share on other sites More sharing options...
vaishalijain7 Posted April 29, 2009 Share Posted April 29, 2009 Hi, I am also facing the same problem and if I put com.microsoft.sqlserver.jdbc.SQLServerDriver to connect to SQLServer 2008 it automatically picks SQLServer 2005 because that's also having same name. Please suggest what to do to overcome the problem. Thanks Vaishale Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted May 2, 2009 Share Posted May 2, 2009 You have just set the driver name, if iReport shows the label SQLServer 2005 it's not a problem. Be sure you have put the driver in the classpath, since iReport does not ship any SQLServer driver.Giulio Link to comment Share on other sites More sharing options...
george1916 Posted July 25, 2011 Share Posted July 25, 2011 Hi, I have just started looking at Ireports and my major problem is Data connectionsI am trying to connect to SQL 2008I have downloaded the driver as per your instructions I have attached the error I am getting Please help Regards George Link to comment Share on other sites More sharing options...
lknueve Posted July 25, 2011 Share Posted July 25, 2011 Did you put the driver location in your classpath? Also, didn't see a username/password entered, so when testing the connection, you need to make sure those are entered as well. Link to comment Share on other sites More sharing options...
shatad0101 Posted July 26, 2011 Share Posted July 26, 2011 Hi I have one problem with connection of Ms Sql 2008 R2 for 32 bit with ireport 4.0.0,i have downloaded mn sql driverhttp://www.microsoft.com/download/en/confirmation.aspx?id=2505and put sqljdbc4.jar file in program file but still i am not able to connect. Actually i installed ms sql with windows authentication and when i try to make coooonection in i report and jasper server it asking for user name ,and password in jasper server as well as in ireport. any one can help me please, Link to comment Share on other sites More sharing options...
lknueve Posted July 26, 2011 Share Posted July 26, 2011 Make sure your connection JDBC URL looks something like the following: jdbc:sqlserver://<servername or ip address>;databaseName=<database name> Then you'll have to enter in your username/password that you use to login to Windows since you used windows Auth for sql server. Link to comment Share on other sites More sharing options...
shatad0101 Posted July 27, 2011 Share Posted July 27, 2011 Hi , Thanx for reply Actually when i installed sql server it didnt ask me for any user name and password in windows authentication.Driver name --com.microsoft.sqlserver.jdbc.SQLServerDriverURL--jdbc:sqlserver://ServerName:1433:databaseName=Mydatabase; i have downloaded ---- Microsoft SQL Server JDBC Driver 3.0and put Sqljdbc4.jar in this-----location C:\Program Files\jasperreports-server-cp-4.0.0\apache-tomcat\webapps\jasperserver\WEB-INF\libcan you check whether it is right or wrong Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now