Integrating with the ServiceNow ODBC Driver
-
Upload
sylvana-silas -
Category
Documents
-
view
50 -
download
0
description
Transcript of Integrating with the ServiceNow ODBC Driver
Integrating with the ServiceNow ODBC Driver
NEOSNUGdevelopersCorner
Brett TeacherSoftware Engineer LeadPNC Bank
I’m Down with ODBCYeah you know Me
NEOSNUGdevelopersCorner
Why am I down with ODBC?
The ServiceNow ODBC Driver enables legacy applications to pull data from
ServiceNow.
NEOSNUGdevelopersCorner
Description• The ServiceNow ODBC driver is compliant to version 3.52
of the Microsoft ODBC specification and allows any ODBC client to connect to the ServiceNow platform for reporting.
• The ServiceNow ODBC driver uses the ServiceNow web services support for a query-only interface.
• The ODBC driver supports only SELECT statements or read-only functions, and does not modify your instance data.
NEOSNUGdevelopersCorner
Instance Setup
• Create a service account in the instance• SOAP role to access the web services• ITIL role to read all tickets
NEOSNUGdevelopersCorner
Download the ODBC Driver• 32-bit• 64-bit
NEOSNUGdevelopersCorner
Create the Data Source• Leave at default
NEOSNUGdevelopersCorner
The installation creates the following links in the menu:
• Interactive SQL (ODBC): an interactive SQL command window for directly testing SQL statement.
• Management Console: a Microsoft MMC snap in for configuring default properties for the ODBC driver.
• ODBC Administrator: a Microsoft ODBC Administrator program.
NEOSNUGdevelopersCorner
Configure the DSN and test the connection using ODBC Administrator
NEOSNUGdevelopersCorner
Interactive SQL• In Windows, navigate to Start > Programs >
ServiceNow ODBC > Interactive SQL (ODBC).• CONNECT admin*admin@ServiceNow• SELECT number, short_description, category,
approval, type, dv_state FROM change_request;
• IMPORTANT: Add a semicolon to the end of MySQL statements;
NEOSNUGdevelopersCorner
Interactive SQL• Example:
NEOSNUGdevelopersCorner
Display Values• When querying a column of type Choice or
Reference, an additional column with the prefix dv_ is available that contains the display value.
NEOSNUGdevelopersCorner
Examples using the ODBC driver
• Running Interactive SQL (ODBC)• Using the ODBC Driver in Excel 2010• Using the ODBC Driver in Crystal Reports 2008• Using ODBC Driver in SQL Server 2008
NEOSNUGdevelopersCorner