You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

There are times when customers may want to create their own reports with a third-party report designer, such as Crystal Reports, using their Clarity database. Performing this action assumes that the customer has Crystal Reports expertise in some fashion. The purpose of this article is to demonstrate how to set up a connection to the Clarity database via ODBC so that a Crystal Reports developer can work with the data to create custom reports. 

Important Note: These instructions pertain to version 4.19 or higher of Clarity. This will not work with lower versions. Also, it is important to note that company names cannot contain any special characters (e.g. ".", ",", "$", "@", "#").

Creating a New User to Allow Access From Crystal Reports

  1. In Clarity, navigate to Configuration > Security > Users. 
  2. Click the "+" button to add a new user. 
  3. Select "Create new user with login"
  4. Enter a username for the new user. 
  5. Be sure to checkmark the "External User" checkbox.  This will allow Crystal Reports to access the Clarity database. YOU WILL NOT BE ABLE TO LOGIN TO YOUR PAYROLL SOFTWARE WITH THIS ACCOUNT, ONLY EXTERNAL PROGRAMS!
  6. Click "Add" to finish adding the new user.

How to set up an ODBC Connection in Windows

1. In your Windows operating system, click the start menu.

2. Navigate to Settings > Control Panel. 

  control panel.bmp

3. In the control panel, double-click "Administrative Tools".

admintools.bmp  

4. Double-click "Data Sources (ODBC)". 
datasource.bmp  

5. The ODBC window will pop up. You can choose to set up either a User DSN (Data Source Name), or a System DSN. The difference between the two is that the User DSN is visible to a specific user on a specific machine, while the System DSN is visible to all users of a machine, including NT Services.
ODBC.bmp

6. Click “Add…”

7. Select "SQL Server" in the box. 

newsource.bmp

7. Click "Finish".  The Create a New Data Source To SQL Server window will pop up.

8. Type in a "Name" and "Description" for your connection and choose the appropriate SQL Server to connect to.  Make sure that you choose the server name with the "/AKM" or "/AKMUS" instance and not just the root server name.

newdatasource.bmp

9. Click "Next".  The Microsoft SQL Server DSN Configuration window will pop up. 

10. Select 'With SQL Server authentication using a login ID and password entered by the user'.

11. Checkmark 'Connect to SQL Server to obtain default settings for the additional configuration options' checkbox. 

12. For "Login ID", type in the username that you created in Clarity from step #4 in the previous section (Creating a New User to Allow Access From Crystal Reports). 

13. For "Password", type in the password that you created in Clarity from the previous section (Creating a New User to Allow Access From Crystal Reports). 

14. Click "Next >" to continue. 

DSNconfig.bmp

15. Accept the default settings and click "Next >"
config.bmp

16. Select the options that you require for your environment/project.  Default settings are usually acceptable.

17. Click "Finish"
config2.bmp

18. The ODBC Microsoft SQL Server Setup confirmation box will appear. You can click "Test Data Source..." to test your settings or click "OK" if you are sure the settings are correct.
sqlsetup.bmp

19. Your connection will now appear in the System Data Sources list. Click "OK" to finish the setup.
datasourcelist.bmp  

The Data Source and Crystal Reports

The newly-created system data source can now be used with any third-party reporting product, such as Business Objects’ Crystal Reports. Simply choose the connection you just created as your data source for the report and all the tables and fields will be available for you to use to create your custom reports.  The scope of this document does not include how to create a connection to a database in Crystal Reports. 

For more information on how to perform this option, please refer to your product reference guide or visit Business Objects on the web, http://www.businessobjects.com/solutions/crystalreports/default.asp

 

  • No labels