Quantcast
Channel: Teradata Developer Exchange - Blog activity for NetFx's blog
Viewing all articles
Browse latest Browse all 56

Setup SQL Server 2008 R2 Linked Server To the Teradata Database - blog entry by NetFx

$
0
0
Short teaser: 
Step-by-Step instuctions to create a SQL Server Linked Server to the Teradata Database.

This blog outlines the steps to create a SQL Server 2008 (64-bit) R2  Linked Server to the Teradata Database.

1. Download and install

  1. The ODBC Driver for Teradata 64-bit
  2. The OLE DB Provider for ODBC 64-bit if it is not included in your OS. You can use the steps in the "Test the ODBC Data Source" section to see a list of OLE DB Providers currently installed on your server.

2. Create an ODBC Data Source

  1. Start the ODBC Data Source Administrator
  2. Select System DSN. User DSN will not work because SQL Server service will not have access to the User DSNs.
  3. Click Add ... button
  4. Select Teradata ODBC driver
  5. Fill in the required fields in the ODBC Driver Setup for Teradata Database dialog box

3. Test the ODBC Data Source

  1. Start Windows Explorer
  2. Navigate to a temporary directory
  3. Right-Click and select "New" - > "Text Document"
  4. Change the file extension to UDL (for example Foo.UDL)
  5. Double-Click the file to display the Data Link Properties dialog box
  6. Select the Provider tab
  7. Select the Microsoft OLE DB Provider for ODBC Drivers
  8. Select the Connection tab
  9. Select Use data source name radio button 
  10. Select the Data Source created in the previous section
  11. Specify a Teradata User ID
  12. Specify a Password
  13. Click the Test Connection button

 4. Create a SQL Server Linked Server Object

  1. Start SQL Server Management Studio
  2. Expand Server Objects
  3. Expand Linked Servers
  4. Expand Providers

  1. Make Sure MSDASQL (Microsoft OLE DB Provider for ODBC Drivers) is installed on the server
  2. Right Click on Linked Servers
  3. Select New Linked Server...
  4. Assign a name to the Linked Server; I suggest a single word name like TD.
  5. Select Microsoft OLE DB Provider for ODBC Drivers
  6. Set the Product Name to Teradata Database.
  7. Set the Data Source to the ODBC DSN Name created in section 2 above.

 

  1. Select Security page
  2. Select Be made using this security context
  3. Set the Remote login field to the Teradata Database User Id
  4. Set the With password field to the Teradata Database Password

 

  1. Click OK button

 5. Test the new Linked Server

  1. Open a New Query
  2. Execute a SELECT statement using a 4 part name (LinkedServerName..DatabaseName.TableName).
    1. The Linked Server Name crated in step 3 above. 
    2. The Teradata Database does not support Catalog; leave it blank.
    3. The Database Name
    4. The Table Name
Select * from TD..NorthwindEF.Customers

 References:

Ignore ancestor settings: 
0
Apply supersede status to children: 
0

Viewing all articles
Browse latest Browse all 56

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>