Jump to content
We've recently updated our Privacy Statement, available here ×
  • Connecting iReport to a Microsoft SQL Datasource


    gregd
    • Version: v3.1 Product: iReport Designer

    [toc on_off::hide=1]

    The following are steps that can be followed to set up a data source within iReport to connect to a Microsoft SQL database:

    Note:These instructions will work for iReport version 3.1 and greater.

    1. Download the JDBC driver (sqljdbc4.jar) from Microsoft: http://msdn.microsoft.com/en-us/data/aa937724.aspx
    2. in iReport Designer, go to the following menu Window =>Services
    3. Expand the Database tree that shows in the Services window and right-click on the Drivers folder and select "New Driver..."

      New_driver.png.dff725f0543b36b55cc874b7418d9b22.png

    4. Add the jar file; Give it a name i.e. "Microsoft SQL Server" and click OK

      Jdbc_driver.png.3e7a2fdaff3aa46765aedd72e8a41e64.png

    5. Right Click on the new "Microsoft SQL Server" driver that appears in the Services window and selected "Connect Using..."
    6. Set up the database connection - as an example, you might use "jjdbc:sqlserver://host:1433;databaseName=yourDatabase", your username and password - and click ok
    7. Add a new datasource using the NetBeans Database JDBC connection - the new connection defined should be in the dropdown
    8. Open the report wizard and you are on your way....

    See Also

     


    User Feedback

    Recommended Comments



    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...