{"id":1138,"date":"2016-04-02T14:35:34","date_gmt":"2016-04-02T14:35:34","guid":{"rendered":"http:\/\/www.theSQLReport.com\/?p=1138"},"modified":"2016-04-02T14:35:34","modified_gmt":"2016-04-02T14:35:34","slug":"creating-an-odbc-connection-to-teradata-for-excel","status":"publish","type":"post","link":"https:\/\/www.theSQLReport.com\/?p=1138","title":{"rendered":"Creating an ODBC Connection to Teradata for Excel"},"content":{"rendered":"<p>Setting up a connection for Excel to the Teradata database was a little bit of a challenge.\u00a0 In this example, the Operating System was Windows 7 and version Excel 2013 was used.\u00a0 This is broken in to two parts, first is setting up the ODBC connection, then section is attaching the connection in Excel.<\/p>\n<p><strong>Note:<\/strong> If the ODBC connection is already setup, then skip down to Part 2<\/p>\n<h3>Part 1: Setting up the ODBC Connection to Teradata<\/h3>\n<ol>\n<li>Click the <strong>Start<\/strong> button, type in the run text box: <strong>odbcad32<\/strong>, then hit the enter button or click on the link above the box.<\/li>\n<\/ol>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/01_odbcad32.jpg\" target=\"_blank\" rel=\"attachment wp-att-1139\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1139 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/01_odbcad32.jpg\" alt=\"odbcad32.exe\" width=\"404\" height=\"699\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/01_odbcad32.jpg 404w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/01_odbcad32-173x300.jpg 173w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/01_odbcad32-121x210.jpg 121w\" sizes=\"(max-width: 404px) 100vw, 404px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">2. The ODBC Data Source Administrator box will open, click the <strong>Add<\/strong> button.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/02_ODBC_DataSourceAdministrator.jpg\" target=\"_blank\" rel=\"attachment wp-att-1154\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1154 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/02_ODBC_DataSourceAdministrator.jpg\" alt=\"ODBC Data Source Administrator\" width=\"461\" height=\"376\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/02_ODBC_DataSourceAdministrator.jpg 461w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/02_ODBC_DataSourceAdministrator-300x245.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/02_ODBC_DataSourceAdministrator-210x171.jpg 210w\" sizes=\"(max-width: 461px) 100vw, 461px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">3. A new box will pop open, click on the <strong>Teradata<\/strong> driver, then click the <strong>Finish<\/strong> button.<\/p>\n<p style=\"padding-left: 60px;\"><strong>Note: If the Teradata driver is not there, then contact the IT department to have it install on the computer.<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/03_CreateNewDataSource.jpg\" target=\"_blank\" rel=\"attachment wp-att-1141\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1141 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/03_CreateNewDataSource.jpg\" alt=\"Create New Data Source\" width=\"465\" height=\"345\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/03_CreateNewDataSource.jpg 465w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/03_CreateNewDataSource-300x223.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/03_CreateNewDataSource-210x156.jpg 210w\" sizes=\"(max-width: 465px) 100vw, 465px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">4. If using a Teradata database account:<\/p>\n<p style=\"padding-left: 60px;\">1. Enter a <strong>name<\/strong> that will be easy to recognize<\/p>\n<p style=\"padding-left: 60px;\">2. Optional to enter a <strong>description<\/strong><\/p>\n<p style=\"padding-left: 60px;\">3.\u00a0 Then the <strong>database server name<\/strong> or <strong>IP address<\/strong> of the Teradata database (may need to get this from the IT department)<\/p>\n<p style=\"padding-left: 60px;\">4. Enter the <strong>database account<\/strong><\/p>\n<p style=\"padding-left: 60px;\">5. Enter the <strong>password<\/strong> for the database account<\/p>\n<p style=\"padding-left: 60px;\">6. Click the <strong>OK<\/strong> button<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/04_DriverSetupforLocalDatabaseAccount.jpg\" target=\"_blank\" rel=\"attachment wp-att-1143\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1143 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/04_DriverSetupforLocalDatabaseAccount.jpg\" alt=\"Driver Setup for Teradata Database Account\" width=\"569\" height=\"449\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/04_DriverSetupforLocalDatabaseAccount.jpg 569w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/04_DriverSetupforLocalDatabaseAccount-300x237.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/04_DriverSetupforLocalDatabaseAccount-210x166.jpg 210w\" sizes=\"(max-width: 569px) 100vw, 569px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">4a. If using an LDAP or Microsoft Active Directory account (eg. password is the same as the one logging on to the network), the in the Mechanism drop down menu and chose <strong>LDAP<\/strong>, before clicking the <strong>OK<\/strong> button.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/04_DriverSetupforLDAP.jpg\" target=\"_blank\" rel=\"attachment wp-att-1142\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1142 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/04_DriverSetupforLDAP.jpg\" alt=\"Driver Setup for LDAP\" width=\"370\" height=\"446\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/04_DriverSetupforLDAP.jpg 370w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/04_DriverSetupforLDAP-249x300.jpg 249w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/04_DriverSetupforLDAP-174x210.jpg 174w\" sizes=\"(max-width: 370px) 100vw, 370px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">5. A popup warning will display about choosing to store the password.\u00a0 If the company&#8217;s security policy permits this, then click the YES button.\u00a0 This will prevent being asked each time for a password when the connection is made.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/05_PasswordWarning.jpg\" target=\"_blank\" rel=\"attachment wp-att-1144\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1144 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/05_PasswordWarning.jpg\" alt=\"ODBC Password Warning\" width=\"329\" height=\"137\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/05_PasswordWarning.jpg 329w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/05_PasswordWarning-300x125.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/05_PasswordWarning-210x87.jpg 210w\" sizes=\"(max-width: 329px) 100vw, 329px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">6. The newly created ODBC connection for Teradata should now be listed, click the <strong>OK<\/strong> button to close the ODBC Data Source Adminstrator.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/06_FinishODBCSetup.jpg\" target=\"_blank\" rel=\"attachment wp-att-1145\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1145 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/06_FinishODBCSetup.jpg\" alt=\"Finish ODBC Setup\" width=\"461\" height=\"376\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/06_FinishODBCSetup.jpg 461w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/06_FinishODBCSetup-300x245.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/06_FinishODBCSetup-210x171.jpg 210w\" sizes=\"(max-width: 461px) 100vw, 461px\" \/><\/a><\/p>\n<h3><\/h3>\n<h3>Part 2: Connecting to the ODBC Connection in Excel<\/h3>\n<ol>\n<li>In the Excel Workbook that you want the Teradata information, click on the <strong>Data<\/strong> tab.\u00a0 Then click on the <strong>From Other Source<\/strong> drop down menu.\u00a0 Then click on the <strong>From Data Connection Wizard<\/strong>.<\/li>\n<\/ol>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/07_ExcelSetupConnection.jpg\" target=\"_blank\" rel=\"attachment wp-att-1146\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1146 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/07_ExcelSetupConnection.jpg\" alt=\"Excel Setup Connection\" width=\"895\" height=\"501\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">2. Click on the <strong>ODBC DNS<\/strong>, then click on the Next button.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/08_ODBC_DNS.jpg\" target=\"_blank\" rel=\"attachment wp-att-1147\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1147 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/08_ODBC_DNS.jpg\" alt=\"ODBC DNS\" width=\"515\" height=\"356\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/08_ODBC_DNS.jpg 515w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/08_ODBC_DNS-300x207.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/08_ODBC_DNS-210x145.jpg 210w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">3. The newly created ODBC connection for Teradata from part 1 above should be there, click on it to highlight it, then click on the <strong>Next<\/strong> button.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/09_ConnectToODBCDataSource.jpg\" target=\"_blank\" rel=\"attachment wp-att-1148\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1148 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/09_ConnectToODBCDataSource.jpg\" alt=\"Connect To ODBC Data Source\" width=\"515\" height=\"354\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/09_ConnectToODBCDataSource.jpg 515w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/09_ConnectToODBCDataSource-300x206.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/09_ConnectToODBCDataSource-210x144.jpg 210w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">4. This is where the table or view with the information that you want brought in to Excel.\u00a0 Highlight the database and table name, then click on the <strong>Next<\/strong> button.<\/p>\n<p style=\"padding-left: 30px;\"><strong>Caution: In Teradata, some of your tables can be holding billions of records, if you attempt to bring in that large a table, it will crash Excel.<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/10_SelectDatabaseTable.jpg\" target=\"_blank\" rel=\"attachment wp-att-1149\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1149 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/10_SelectDatabaseTable.jpg\" alt=\"Select Database Table\" width=\"519\" height=\"361\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/10_SelectDatabaseTable.jpg 519w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/10_SelectDatabaseTable-300x209.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/10_SelectDatabaseTable-210x146.jpg 210w\" sizes=\"(max-width: 519px) 100vw, 519px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">5. Enter a descriptive name, especially if this connection with be used again.\u00a0 The description is optional.\u00a0 Click on the <strong>Finish<\/strong> button, and the box will close.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/11_Finish.jpg\" target=\"_blank\" rel=\"attachment wp-att-1150\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1150 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/11_Finish.jpg\" alt=\"Finish\" width=\"513\" height=\"427\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/11_Finish.jpg 513w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/11_Finish-300x250.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/11_Finish-210x175.jpg 210w\" sizes=\"(max-width: 513px) 100vw, 513px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">6. A popup box will ask to import the data now.\u00a0 If there is a large amount of data, this may take seconds, maybe even minutes depending on the database.\u00a0 In the example below, the defaults were taken by clicking on the <strong>OK<\/strong> button.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/12_ImportData.jpg\" target=\"_blank\" rel=\"attachment wp-att-1151\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1151 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/12_ImportData.jpg\" alt=\"Import Data\" width=\"309\" height=\"261\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/12_ImportData.jpg 309w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/12_ImportData-300x253.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/12_ImportData-210x177.jpg 210w\" sizes=\"(max-width: 309px) 100vw, 309px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">7. Below is an example of what the results may look like.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/13_Results.jpg\" target=\"_blank\" rel=\"attachment wp-att-1152\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1152 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/13_Results.jpg\" alt=\"Teradata Results Displayed in Excel\" width=\"1432\" height=\"467\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/13_Results.jpg 1432w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/13_Results-300x98.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/13_Results-768x250.jpg 768w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/13_Results-1024x334.jpg 1024w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2016\/03\/13_Results-210x68.jpg 210w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">\n","protected":false},"excerpt":{"rendered":"<p>Setting up a connection for Excel to the Teradata database was a little bit of a challenge.\u00a0 In this example, the Operating System was Windows 7 and version Excel 2013 &hellip; <a class=\"readmore\" href=\"https:\/\/www.theSQLReport.com\/?p=1138\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1146,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54,10],"tags":[73,74,66],"class_list":["post-1138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-teradata","category-windows","tag-excel","tag-odbc","tag-teradata"],"_links":{"self":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1138"}],"collection":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1138"}],"version-history":[{"count":12,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1138\/revisions"}],"predecessor-version":[{"id":1168,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/1138\/revisions\/1168"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/media\/1146"}],"wp:attachment":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}