ReportByEmail ODBC Connection setup

Similar documents
ODBC Group Policy Settings

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

Installation Instruction STATISTICA Enterprise Small Business

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

Installation / Migration Guide for Windows 2000/2003 Servers

Installation Instruction STATISTICA Enterprise Server

Step 2: Open the ODBC Data Source Administrator Panel

Querying Databases Using the DB Query and JDBC Query Nodes

Setting Up ALERE with Client/Server Data

Installing Cobra 4.7

GeneMapper Software v.4.1 Uninstall Procedure

MICROSTRATEGY 9.3 Supplement Files Setup Transaction Services for Dashboard and App Developers

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Voyager Reporting System (VRS) Installation Guide. Revised 5/09/06

Dell Statistica Statistica Enterprise Installation Instructions

Migrating a Database from Legi for Windows 2.X to MS Access

TAMUS Terminal Server Setup BPP SQL/Alva

ODBC Driver Version 4 Manual

IceWarp Server Windows Installation Guide

Disabling Microsoft SharePoint in order to install the OneDrive for Business Client

Migrating helpdesk to a new server

Global Image Management System For epad-vision. User Manual Version 1.10

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Matisse Installation Guide for MS Windows. 10th Edition

Setting up a database for multi-user access

2. Unzip the file using a program that supports long filenames, such as WinZip. Do not use DOS.

SEER-HD Database Administrator s Guide

Installing SQL Express. For CribMaster 9.2 and Later

ilaw Installation Procedure

Sync Exchange for MS Access Conduit for Windows Version 4 Manual

Computer Science and Engineering Windows Cisco VPN Client Installation and Setup Guide

SAS 9.3 Foundation for Microsoft Windows

3 Setting up Databases on a Microsoft SQL 7.0 Server

Test Note Phone Manager Deployment Windows Group Policy Sever 2003 and XP SPII Clients

Insight Video Net. LLC. CMS 2.0. Quick Installation Guide

Snow Inventory. Installing and Evaluating

How to make a VPN connection to our servers from Windows XP

Moving the TRITON Reporting Databases

ProjectWise Explorer V8i User Manual for Subconsultants & Team Members

Database Selection Guide

Reconfiguring VMware vsphere Update Manager

ReportBy Microsoft Active Directory

How To Install Database Oasis On A Computer Or Computer (For Free)

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

CONTACTS SYNCHRONIZER FOR IPAD USER GUIDE

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

Magaya Software Installation Guide

FileMaker 12. ODBC and JDBC Guide

ODBC Overview and Information

SPECIALIST PRACTICE MANAGER

Database Assistant. Once Database Assistant is installed you must login to gain access to the database. Copyright 2009

Linking Access to SQL Server

Vodafone PC SMS (Software version 4.7.1) User Manual

Witango Application Server 6. Installation Guide for Windows

Network Setup Instructions

Connect to MySQL or Microsoft SQL Server using R

Sage Abra Timesheet. Quick Start Guide

Sage Intelligence Financial Reporting for Sage ERP X3 Version 6.5 Installation Guide

Virtual Office Remote Installation Guide

Contents. VPN Instructions. VPN Instructions... 1

Database Selection Guide

E-Notebook SQL 12.0 Desktop Database Migration and Upgrade Guide. E-Notebook SQL 12.0 Desktop Database Migration and Upgrade Guide

WhatsUp Gold v16.1 Installation and Configuration Guide

NETWRIX WINDOWS SERVER CHANGE REPORTER

Upgrading MySQL from 32-bit to 64-bit

Crystal Reports Installation Guide

STATISTICA VERSION 11 CONCURRENT NETWORK LICENSE WITH BORROWING INSTALLATION INSTRUCTIONS

Converting InfoPlus.21 Data to a Microsoft SQL Server 2000 Database

How to Install Multiple Monitoring Agents on a Microsoft Operating System. Version StoneGate Firewall/VPN 2.6 and SMC 3.2

Introduction and Overview

Troubleshooting BPMS Errors

FileMaker 13. ODBC and JDBC Guide

Copyright 2011 DataNet Quality Systems. All rights reserved. Printed in U.S.A. WinSPC is a registered trademarks of DataNet Quality Systems.

How to Move an SAP BusinessObjects BI Platform System Database and Audit Database

Almyta Control System Advanced Reference Contents

Installing the ASP.NET VETtrak APIs onto IIS 5 or 6

FileMaker 8. Installing FileMaker 8 ODBC and JDBC Client Drivers

Novell Filr. Windows Client

Server & Workstation Installation of Client Profiles for Windows (WAN Edition)

etoken Enterprise For: SSL SSL with etoken

InformationNOW Upgrading to Microsoft SQL Server 2008

How to Install CS OrthoTrac on a New Server and Copy the Data from the Old Server to the New Version 12 and higher

Reconfiguration of VMware vcenter Update Manager

a) Network connection problems (check these for existing installations)

SEER Enterprise Shared Database Administrator s Guide

CHAPTER 23: USING ODBC

Errors That Can Occur When You re Running a Report From Tigerpaw s SQL-based System (Version 9 and Above) Modified 10/2/2008

GO!NotifyLink. Database Maintenance. GO!NotifyLink Database Maintenance 1

Upgrading Your Web Server from ClientBase Browser Version 2.0 or Above to Version 2.1.1

Moving a database from MS Access to MS SQL server. Introduction. Selecting the database. Creating a Data Source

How to Reinstall SQL Server 2005

4cast Client Specification and Installation

BACKUP UTILITY FOR TIMEFORCE

NAS 253 Introduction to Backup Plan

Upgrading Centricity Electronic Medical Record Service Packs on Microsoft Windows Server

Upgrading LytecMD from to 9.4 on Windows Server Best Practices. Revision Date: 7/29/2010 PLEASE READ:

ScanShell.Net Install Guide

NTI Backup Now EZ v2 User s Guide

Pcounter Web Report 3.x Installation Guide - v Pcounter Web Report Installation Guide Version 3.4

5.6.3 Lab: Registry Backup and Recovery in Windows XP

Transcription:

ReportByEmail ODBC Connection setup

Page 2 of 28 Content Introduction... 3 ReportByEmail Server and changing ODBC settings... 3 Microsoft AD Windows setup... 3 Important notice regarding 32-bit / 64-bit versions of Windows... 3 Setup ODBC datasources on server and clients... 4 Oracle ODBC Connections... 10 Excel sheets and Oracle ODBC Drivers... 12 Microsoft Access ODBC Sources... 17 MySQL ODBC-driver... 22 Other third party ODBC drivers... 22 All other ODBC resources... 22 ODBC System resources on Server and clients... 23 ODBC setup shortcut... 23 Windows Registry Warning... 23 Windows Registry backup - general... 23 Export ODBC registry settings 32bit... 24 Export ODBC registry settings 64bit... 27 ODBC settings import... 27 Microsoft Active Directory Registry settings for ODBC... 28

Page 3 of 28 Introduction The manual describes setting up ODBC connections to Microsoft SQL Server and other servers. Setting up theses connections are needed on all client machines and the ReportByEmail server in order to allow Excel to with the same database resources from the different machine. ReportByEmail Server and changing ODBC settings Please notice, that the ReportByEmail server reads ODBC settings at start up. If you change the ODBC settings, ReportByEmail will not recognize this before the ReportByEmail server service has been stopped and started. Microsoft AD Windows setup During this setup it s expected, that the Preparation Before install Server document has been followed regarding all AD settings. Otherwise your rights to the Microsoft SQL server databases will no be in place and you will not succeed in getting connections to your databases. Important notice regarding 32-bit / 64-bit versions of Windows It s important to understand which kind of DSN you have. On an x64 system, you can create an ODBC connection (DSN) on the 32-bit side of the system or on the 64-bit side of the system. 32-bit applications will only see ODBC connections created in the 32-bit side, and 64- bits applications will only see ODBC connections from the 64-bit side. Each kind of application has is own registry settings in separate locations of the registry. To setup DSN for 32-bit application you must use: %WINDIR%\SysWOW64\odbcad32.exe and for 64-bit application you must use: %WINDIR%\System32\odbcad32.exe There is not 32-bit edition of Windows XP on the XP Pro x64 media. http://support.microsoft.com/kb/942976/en-us So if you have created an ODBC System DSN, as specified in the following sections and you can t see it from Microsoft Excel, you re probably running a 64-bit operating system and used the wrong odbcad32.exe file. In this case run:

Page 4 of 28 %WINDIR%\SysWOW64\odbcad32.exe And define the ODBC connection there. Setup ODBC datasources on server and clients ReportByEmail uses ODBC-connections to communicate with databases. This section describes how to setup ODBC sources. Start / Settings / Control panel. Administrative tools. Data Sources (ODBC) The following default window appears: Change to the System DSN window. Depending on which server is used, some ODBC connections might have been created already:

Page 5 of 28 Create a ODBC connection for the Microsoft Navision database. Click on Add: Select the SQL Server driver, which is usually located at the bottom of the list. Therefore press the end-key:

Page 6 of 28 After pressing Finish the following window shows up: Enter a name for the connection, for instance Navision. Description is not used. In the server field select the Microsoft SQL server, which holds the database:

Page 7 of 28 Click Next, not finish: Accept the default settings and click Next:

Page 8 of 28 In this window, it s important to change the default database to the name selected previously. Especially the ReportByEmail functionality with SQL table lookup of recipients won t work, if the correct database is not selected. Click Next.

Page 9 of 28 Click Finish. Click Test Data Source:

Page 10 of 28 Congratulations! Oracle ODBC Connections This is highly complicated due to limitations in the ODBC drivers. Basically you need to install an Oracle client on the ReportByEmail server, if you want to access Oracle data. Please perform an Oracle client installation first. After installation of the Oracle client you can choose between two ODBC Drivers: Microsoft ODBC for Oracle 2.576.3959.000 Oracle in Orahome92 9.02.00.00 If you re not at the same version level for the Microsoft ODBC Driver, please download and install Microsoft MDAC 2.8 or newer. Depending on the version of Oracle installed, the version will of course differ from the listed version 9.2 above. Unfortunately there is a bug in the Oracle client, which means you need to do some manual adjustments to registry. The ODBC driver uses DLL s supplied by Oracle, but wrong/old Dll s are referenced in registry. Open registry by choosing Start / Run / Regedit. Browse to HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / MSDTC / MTxOCL.

Page 11 of 28 The originally settings are often se to the following: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\MTxOCI] "OracleXaLib"="xa80.dll" "OracleSqlLib"="SQLLib80.dll" "OracleOciLib"="oci.dll" Change these to: "OracleXaLib"="oraclient9.dll" "OracleSqlLib"="orasql9.dll" "OracleOciLib"="oci.dll" If running Oracle version 9. If running version 10, replace all 9 s with 10 s. After the changes, the values should look like the following: Check to see that the new DLL-files are located in the C:\oracle\ora92\bin directory. The ODBC driver will not work unless the Dll-files listed above exists and their location on the server is included in the ReportByEmail server PATH variable. To test the database connection, please consult and check that connectivity is okay by using Oracle client. Use: Tnsping axdb To test connection to an Microsoft Axapta database on Oracle. Inspect the tnsnames.ora file located in: C:\oracle\ora92\network\ADMIN. Also check that C:\oracle\ora92\bin is included in the ReportByEmail server PATH variable.

Page 12 of 28 Excel sheets and Oracle ODBC Drivers Since Oracle does not have Microsoft AD integration, trusted access for the ReportByEmail server to the Oracle databases is not supported. The username and password for access to the Oracle database needs to be entered into all Excel sheets. Default Excel does not generate the correct ODBC connection string, so modifications are needed. When creating a new Excel sheet, choose select data from external source using MS Query: In the example above, axdb is a Oracle ODBC Driver and axdbms is a Microsoft ODBC driver for Oracle. The genuine Oracle driver does not support the date- and time-fields in MS Query, which makes it very difficult to design queries using the Oracle driver from oracle. The Microsoft ODBC driver does support the date and time-formats, so designing reports in MS Query is as easy as when designing Excel sheets against Microsoft SQL Servers. Choose the axdbms in this example. This window is very important. The User name and password is the Oracle username and password. Enter whose values. In the server field, DO NOT put the name of the Oracle server! You need to put in the TNS-name of the database, in this case axdbms. This is not documented, so please check this, if something does not work for you!

Page 13 of 28 Click Ok. The data tables in the axdbms database shows up and choosing tables is done the same way as with Microsoft SQL server. After choosing a table like ADDRESS, the data is returned to the Excel sheet. In order to get this to work during execution under ReportByEmail, the password needs to be added. Choose Data, Connections, Properties on the query:

Page 14 of 28 Change to definition:

Page 15 of 28 Notice that the Connectionstring in the top block does not contain any password. The syntax for Oracle passwords is: PWD=<password>. After inserting this into the text and enabling Save password, the connection looks like this:

Page 16 of 28 Now the report can run under ReportByEmail.

Page 17 of 28 Microsoft Access ODBC Sources ODBC data sources are setup similar to Microsoft SQL servers, but with a few different challenges: Always use UNC-paths when addressing a Microsoft Access Database, e.g. the full path like in: \\cphfile\d$\test\data\database\testdb.mdb Always setup the Defaultdir to the same path as the UNC-path above, e.g.: \\cphfile\d$\test\data\database If you setup an ODBC connection to a mapped drive, it will work when running the Excel queries manually, even on the ReportByEmail server, but when the ReportByEmail service is running, the mapped drive will not be mapped (Microsoft design) and the data will not be accessible from Excel. The UnitekDB and UnitekLog databases are both Microsoft Access databases. Choose Configure.

Page 18 of 28 If logging is enabled (Multi-user environment), you might have to point to a Systemdatabase in the lower part of the window. Choose Vælg / Select : The URL has been pasted into the databasename to the upper left. Notice the treestructure in the window in the middle. Always use an UNC path and not a mapped drive. Don t click on Netværk / Network and map a drive. Back in the main view select Avanceret / Advanced :

Page 19 of 28 If the Microsoft Access database is protected with username and password, insert this In the window above top to lines. Check that the DefaultDir is similar to the path where the database is located as specified in the beginning of this section. You can also set the readonly attribute:

Page 20 of 28 This ensures that you can never write anything back to Access database, e.g. ReportByEmail is only used to extract data from the Access database. After you have defined a report in Excel using MS Query, check the settings:

Page 21 of 28 Notice that the DBQ and DefaulrDir parameters in the Forbindelsesstreng / Connection string does not contain any mapped drives, but UNC paths. If you define a report using a mapped drive, changing the ODBC source WILL NOT change this setting above and you will still try to connect to the database using a mapped drive. You need to change the Connection string setting above to use UNC path as showed above.

Page 22 of 28 MySQL ODBC-driver Visit: http://dev.mysql.com/downloads/connector/odbc to download the newest ODBC driver for the MySQL database. Choose a MSI-version of the driver and download it to a temporary location. Run the MSI-file. Other third party ODBC drivers Please remember, that only a limited number of drivers are default installed on a typical Windows 2003 server, Windows XP or Windows Vista client. In order to get ODBC connections to work with MySql and other third party ODBC products, you need both to install the ODBC drivers and define the ODBC sources. E.g. First install the driver as specified by the producer. Then define the ODBC settings as described above or follow the advices in the following section regarding easy copying of ODBC settings from machine to machine. All other ODBC resources Do the same as described above for all other databases. You could very well end up with many ODBC resources in the System folder maybe 10 or more.

Page 23 of 28 ODBC System resources on Server and clients All these ODBC settings need to be setup on the ReportByEmail server AND on all clients, which will be developing Excel sheets for ReportByEmail. The name of the ODBC Source (In this case Navision) needs to be the same both on the clients and on the server if using NT Authentication, which is by far the easiest way of working with ReportByEmail. ODBC setup shortcut You can copy ODBC settings from one machine to another. This involves editing registry of the machines involved. There is always a risk, that you might harm the machine and that you can t get it up running again, if you use Microsoft Registry incorrect. Notice that you can not copy the registry keys between 32-bit operating systems and 64-bit operating systems. If you re running Windows XP 32-bit and Windows server 2003 32-bit, it works fine. If you re running Vista 64-bit or Windows 2008 server 64-bit it also works. But if you have a mix of platforms, copying is not possible. In this case you need to maintain to sets of registry files (see explanation later). Windows Registry Warning If you read almost any article in the Microsoft Knowledge Base that suggests editing the Windows registry, you will see this: WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Note that you should back up the registry before you edit it. Windows Registry backup - general Problems caused by improperly editing the Windows registry could render your computer operating system unusable. Microsoft provides a wealth of critical information that you need to know about the registry in the Microsoft Knowledge Base at http://support.microsoft.com/support. Additional information about the registry is also available in the Help topics in the Microsoft Registry Editor.

Page 24 of 28 To back up the registry: On the Start menu (Windows), click Run. In the Open box, enter regedit, and then click OK. In the Registry Editor, on the Registry menu, click Export Registry File. From the Save As Type drop-down list, select Registration Files (*.reg). Under Export Range, click All. In the File Name box, enter Backup Registry. In the Save In box, select Desktop. In the upper right corner of the Export Registry File dialog box, click Create New Folder, and then enter My Backup Files. Click Save. Note: You have just saved the Backup Registry file to the My Backup Files folder on the desktop. In each of the following back-up procedures, you will be instructed to save your files to the same folder. On the Registry menu, click Exit. Verify that the Registry Backup.reg file is located in the My Backup Files folder. To do this, double-click the My Backup Files folder on the desktop and note the contents. If the file is there, close the My Backup Files folder. If the file is not there, repeat steps 1 through 9, but in step 8, do not create a new folder; instead, select the My Backup Files folder. Export ODBC registry settings 32bit Go to Start / Run. And enter the text: Regedit Browse to: My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI It s very important not to delete or move any entries! See the list: Here you can see all the ODBC drivers located in the System folder of the ODBC setup.

Page 25 of 28 Place the cursor above the ODBC.INI location and Choose file / Export in the menu: Browse to a location on a network-share, where you can access the file from other clients that needs to ODBC setup. The path at the bottom of the window is very important and must be the same. Fill in the file name with RBEODBC.REG:

Page 26 of 28 Press save. If you browse to the new folder, you ll see one file:

Page 27 of 28 Export ODBC registry settings 64bit Go to Start / Run. And enter the text: Regedit Browse to: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI Note the difference from 32-bit editions, where you go to a different SOFTWARE folder. ODBC settings import Access this from another computer, where you would like to have the same ODBC connection and double-click on the file: Press Yes and the ODBC sources are available on the new machine.. Remember to import the correct version (32-bit or 64-bit). If the imported registry does not show up in the ODBC under Administrative tools, you are probably mixing the platforms.

Page 28 of 28 Microsoft Active Directory Registry settings for ODBC If you have a server and a number of clients, it s easy to manage ODBC settings in a Microsoft Active Directory Group Policy. If a ReportByEmail client gets a new PC, it s very easy to apply all the ODBC settings and changing from one SQL server to another is also very easy to apply to all clients and the server. Currently you will need an Active Directory at least at level Windows AD 2008. Unfortunately this are bugs in the utility used to define the group policy, which means that the most obvious way of defining the settings using the ODBC Setting does not work. Do the following on a machine, that already has the ODBC drivers defined locally: In Microsoft AD Users and Computers, define a new Organization Unit and move all clients and the ReportByEmail server to this container. Open Microsoft AD Group Policy. Create a new policy called ODBC. Go to the area with registry settings, right-click and select Import Point to the same registry areas as specified above and import all ODBC settings, e.g. My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI Save this group policy. Create a new one called ODBCWOW. This is used to handle machines with different bit versions of Excel and the operating system. Import the same ODBC drivers from the SYSWOW64 location also as specified earlier in this document: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI Apply both policies on the newly created Organization Unit. On the ReportByEmail machines involved run in DOS: GPUPDATE /FORCE This forces the machines to update with the newest settings. Some machines might require a reboot. After a reboot check the ODBC settings and see that they all work. If a new client PC needs the ODBC settings, move the machine to the Organizational Unit or apply the two group policies to the Organizational Unit, where the machine is located.