通过 Excel 宏连接到 Amazon Redshift(ODBC 连接字符串到 Amazon Redshift)
Connecting to Amazon Redshift via Excel Macro (ODBC Connection String to Amazon Redshift)
是否有人通过 excel 宏 (VBA) 连接到 Amazon Redshift 数据库?我想使用与连接到 Teradata 相同的过程连接到 Amazon Redshift 数据库——直接通过来自 Macrco 的连接字符串。有人可以帮忙吗?
Teradata 我遵循这个:Conn.ConnectionString = "DRIVER={Teradata};" & "UID=" & suid & ";" & "PWD=" & spwd & ";" & "DBCNAME=" & sdbcnm & ";" & "AUTHENTICATION=;"
假设您已经安装了 ODBC 驱动程序,您应该能够使用此字符串的更改:
Driver={Amazon Redshift (x64)};
Server=examplecluster.abc123xyz789.us-west-2.redshift.amazonaws.com;
Database=dev; UID=masteruser; PWD=your_password; Port=5439
注意:如果您有 32 位版本的 Excel(最常见),您需要确保您的连接字符串(和驱动程序安装)反映了这一点。
文档参考:
http://docs.aws.amazon.com/redshift/latest/mgmt/configure-odbc-connection.html#obtain-odbc-url
是否有人通过 excel 宏 (VBA) 连接到 Amazon Redshift 数据库?我想使用与连接到 Teradata 相同的过程连接到 Amazon Redshift 数据库——直接通过来自 Macrco 的连接字符串。有人可以帮忙吗?
Teradata 我遵循这个:Conn.ConnectionString = "DRIVER={Teradata};" & "UID=" & suid & ";" & "PWD=" & spwd & ";" & "DBCNAME=" & sdbcnm & ";" & "AUTHENTICATION=;"
假设您已经安装了 ODBC 驱动程序,您应该能够使用此字符串的更改:
Driver={Amazon Redshift (x64)};
Server=examplecluster.abc123xyz789.us-west-2.redshift.amazonaws.com;
Database=dev; UID=masteruser; PWD=your_password; Port=5439
注意:如果您有 32 位版本的 Excel(最常见),您需要确保您的连接字符串(和驱动程序安装)反映了这一点。
文档参考: http://docs.aws.amazon.com/redshift/latest/mgmt/configure-odbc-connection.html#obtain-odbc-url