This blog outlines the steps to create a SQL Server 2008 (64-bit) R2 Linked Server to the Teradata Database.
1. Download and install
- The ODBC Driver for Teradata 64-bit
- 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
- Start the ODBC Data Source Administrator
- Select System DSN. User DSN will not work because SQL Server service will not have access to the User DSNs.
- Click Add ... button
- Select Teradata ODBC driver
- Fill in the required fields in the ODBC Driver Setup for Teradata Database dialog box
3. Test the ODBC Data Source
- Start Windows Explorer
- Navigate to a temporary directory
- Right-Click and select "New" - > "Text Document"
- Change the file extension to UDL (for example Foo.UDL)
- Double-Click the file to display the Data Link Properties dialog box
- Select the Provider tab
- Select the Microsoft OLE DB Provider for ODBC Drivers
- Select the Connection tab
- Select Use data source name radio button
- Select the Data Source created in the previous section
- Specify a Teradata User ID
- Specify a Password
- Click the Test Connection button
4. Create a SQL Server Linked Server Object
- Start SQL Server Management Studio
- Expand Server Objects
- Expand Linked Servers
- Expand Providers
- Make Sure MSDASQL (Microsoft OLE DB Provider for ODBC Drivers) is installed on the server
- Right Click on Linked Servers
- Select New Linked Server...
- Assign a name to the Linked Server; I suggest a single word name like TD.
- Select Microsoft OLE DB Provider for ODBC Drivers
- Set the Product Name to Teradata Database.
- Set the Data Source to the ODBC DSN Name created in section 2 above.
- Select Security page
- Select Be made using this security context
- Set the Remote login field to the Teradata Database User Id
- Set the With password field to the Teradata Database Password
- Click OK button
5. Test the new Linked Server
- Open a New Query
- Execute a SELECT statement using a 4 part name (LinkedServerName..DatabaseName.TableName).
- The Linked Server Name crated in step 3 above.
- The Teradata Database does not support Catalog; leave it blank.
- The Database Name
- The Table Name
Select * from TD..NorthwindEF.Customers
References:
Ignore ancestor settings:
0
Apply supersede status to children:
0