简体   繁体   English

Teradata与Microsoft Excel宏的连接

[英]Teradata Connection with Microsoft Excel Macro

I am getting problem while trying to run Marcos in Microsoft Excel for Teradata Connection. 我试图在Microsoft Excel for Teradata Connection中运行Marcos时遇到问题。 My code for Connecting Teradata through marcos 我通过marcos连接Teradata的代码

Dim hostName As String: hostName = "locahost"
Dim dbName As String: dbName = "STG_CNV"
Dim username As String: username = "username"
Dim password As String: password = "password"
Dim Row As Integer: Row = 1

Dim Query As String, lastColumn As Integer, lastRow As Long

'Connect to database
Conn.Open "Driver={Teradata};" & _
          "DBCName=" & hostName & ";" & _
          "Database=" & dbName & ";" & _
          "Uid=" & username & ";" & _
          "Pwd=" & password & ";" & _
          "Extended Properties=""EXTENDLOBSUPPORT=Yes"""
          '"Extended Properties=""USENATIVELOBSUPPORT=Yes"""

I am Error in as 我错了

[Teradata][ODBC Teradata Drive] Major Status=0x04bd Minor Status=0xe1000095-[terasso] Cannot load TDGSS library.

As I know this is problem with ODBC drive. 我知道这是ODBC驱动器的问题。 But my teradata client is running wiht ODBC drive but in Microsoft Excel, its not. 但我的teradata客户端正在运行ODBC驱动器,但在Microsoft Excel中,它不是。 How can we solve it ? 我们怎么解决呢?

Teradata ODBC Client requires two additional libraries to be installed on the client, the Shared ICU Libraries and GSS Library. Teradata ODBC客户端需要在客户端上安装两个额外的库,即共享ICU库和GSS库。 They generally have to be selected separately to be installed as part of the Teradata Client or Tools and Utilities installation package. 它们通常必须单独选择才能作为Teradata Client或Tools and Utilities安装包的一部分进行安装。

Sometimes if you are upgrading to a newer version of the driver and don't install them correctly it can cause problems when you install the newer release of the client. 有时,如果要升级到较新版本的驱动程序并且未正确安装它,则在安装较新版本的客户端时可能会导致问题。 If that happens you typically have to uninstall everything relating to the Teradata client and start over. 如果发生这种情况,您通常必须卸载与Teradata客户端相关的所有内容并重新开始。

Have you recently installed or upgraded the ODBC Driver? 您最近安装或升级了ODBC驱动程序吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM