I am working on a large application in Visual Basic 5.0 and one element of the application must connect to a Teradata database and perform a query, then disconnect.
I have done some minimual programming with ODBC, but need help with the connection string.
I am using Windows NT 4.0 and have alrady installed the NCR Teradata driver and configured a datasource "taradevelopment" to the database.
In the VB Project I have declared:
Dim tdata As New ADODB.Connection
Next I try to connect to the database:
tdata.Open "Provider=Teradata;" & _
"DBCName=wdev;" & _
"Database=mprodv;" & _
"Uid=USERNAME;" & _
"Pwd=PASSWORD;"
However I get an error saying the PROVIDER cannot be found.
I know I am doing something completely wrong. Can anyone help me connect properly to the database via ODBC with Visual basic? Any resources that give examples would be appreciated.
Thanks in advance.
Jim Lipsit.
I have done some minimual programming with ODBC, but need help with the connection string.
I am using Windows NT 4.0 and have alrady installed the NCR Teradata driver and configured a datasource "taradevelopment" to the database.
In the VB Project I have declared:
Dim tdata As New ADODB.Connection
Next I try to connect to the database:
tdata.Open "Provider=Teradata;" & _
"DBCName=wdev;" & _
"Database=mprodv;" & _
"Uid=USERNAME;" & _
"Pwd=PASSWORD;"
However I get an error saying the PROVIDER cannot be found.
I know I am doing something completely wrong. Can anyone help me connect properly to the database via ODBC with Visual basic? Any resources that give examples would be appreciated.
Thanks in advance.
Jim Lipsit.