Integrating with the ServiceNow ODBC Driver
description
Transcript of Integrating with the ServiceNow ODBC Driver
![Page 1: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/1.jpg)
Integrating with the ServiceNow ODBC Driver
NEOSNUGdevelopersCorner
Brett TeacherSoftware Engineer LeadPNC Bank
![Page 2: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/2.jpg)
I’m Down with ODBCYeah you know Me
NEOSNUGdevelopersCorner
![Page 3: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/3.jpg)
Why am I down with ODBC?
The ServiceNow ODBC Driver enables legacy applications to pull data from
ServiceNow.
NEOSNUGdevelopersCorner
![Page 4: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/4.jpg)
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
![Page 5: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/5.jpg)
Instance Setup
• Create a service account in the instance• SOAP role to access the web services• ITIL role to read all tickets
NEOSNUGdevelopersCorner
![Page 6: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/6.jpg)
Download the ODBC Driver• 32-bit• 64-bit
NEOSNUGdevelopersCorner
![Page 7: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/7.jpg)
Create the Data Source• Leave at default
NEOSNUGdevelopersCorner
![Page 8: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/8.jpg)
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
![Page 9: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/9.jpg)
Configure the DSN and test the connection using ODBC Administrator
NEOSNUGdevelopersCorner
![Page 10: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/10.jpg)
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
![Page 11: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/11.jpg)
Interactive SQL• Example:
NEOSNUGdevelopersCorner
![Page 12: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/12.jpg)
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
![Page 13: Integrating with the ServiceNow ODBC Driver](https://reader035.fdocuments.net/reader035/viewer/2022062301/56814590550346895db27df3/html5/thumbnails/13.jpg)
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