Quantcast
Viewing all articles
Browse latest Browse all 445

teradata driver upgraded from 12 to 14; excel vba connection string wont work now

Recently changed from 12 to 14, a macro we had to auto connect to Teradata that worked fine with 12 now gives the error [Teradata][ODBC Teradata Driver] Not enough information to log on.
 
Is there something that needs to be modified?  VBA code is below, with comment on where error is occuring...
 
Sub qryTeradata(userid As String, password As String, XLSQL As String, exceltab As String)
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
Dim cmdSQLData As ADODB.Command
Set cmdSQLData = New ADODB.Command
         
'Open connection with Teradata THIS IS WHAT IS CAUSING THE ERROR
   cn.Open "Data Source=ntl_prd_allvm;"& _
           "Database=ntl_prd_allvm;"& _
           "Persist Security Info=True;Session Mode=ANSI;"& _
           "Uid="& userid & ";"& _
           "Pwd="& password & ""

Forums: 

Viewing all articles
Browse latest Browse all 445

Trending Articles