130 likes | 317 Views
NEOSNUG developersCorner. Integrating with the ServiceNow ODBC Driver. Brett Teacher Software Engineer Lead PNC Bank. NEOSNUG developersCorner. I’m Down with ODBC Yeah you know Me. NEOSNUG developersCorner. Why am I down with ODBC?.
E N D
NEOSNUG developersCorner Integrating with the ServiceNow ODBC Driver Brett Teacher Software Engineer Lead PNC Bank
NEOSNUG developersCorner I’m Down with ODBC Yeah you know Me
NEOSNUG developersCorner Why am I down with ODBC? The ServiceNow ODBC Driver enables legacy applications to pull data from ServiceNow.
Description NEOSNUG developersCorner • 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.
Instance Setup NEOSNUG developersCorner • Create a service account in the instance • SOAP role to access the web services • ITIL role to read all tickets
Download the ODBC Driver NEOSNUG developersCorner • 32-bit • 64-bit
Create the Data Source NEOSNUG developersCorner • Leave at default
The installation creates the following links in the menu: NEOSNUG developersCorner • 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.
Configure the DSN and test the connection using ODBC Administrator NEOSNUG developersCorner
Interactive SQL NEOSNUG developersCorner • 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;
Interactive SQL NEOSNUG developersCorner • Example:
Display Values NEOSNUG developersCorner • When querying a column of type Choice or Reference, an additional column with the prefix dv_ is available that contains the display value.
Examples using the ODBC driver NEOSNUG developersCorner • 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