Using the Properties Collection - OLE DB Provider for Teradata

OLE DB Provider for Teradata User Guide

Product
OLE DB Provider for Teradata
Release Number
15.00
Language
English (United States)
Last Update
2018-09-28
dita:id
B035-2498
Product Category
Teradata Tools and Utilities

Using the Properties Collection

You can also set the required four properties using the properties collection. See the following sample Visual Basic program:

Example – Visual Basic

Dim TeraCnxn As New ADODB.Connection
 
With TeraCnxn
.Provider = "TDOLEDB"					
.Properties("Data Source") = "Teradata1"
.Properties("User Id") = "userid"
.Properties("Password") = "password"
.Properties(“Extended Properties”)= “SESSIONMODE=TERADATA;”
.Open
End With