【问题标题】:How to specify database for SQL Server catalog in Presto?如何在 Presto 中为 SQL Server 目录指定数据库?
【发布时间】:2021-03-18 12:50:15
【问题描述】:

我为 SQL Server 指定了以下目录

connector.name=sqlserver
connection-url=jdbc:sqlserver://192.168.1.1
connection-user=build_agent
connection-password=build_agent

当我尝试对其运行查询时,似乎我只能访问master 数据库。如何指定特定的数据库?

【问题讨论】:

    标签: sql-server presto trino


    【解决方案1】:

    来自 Trino(以前称为 Presto SQL)SQL Server 连接器文档 (https://trino.io/docs/current/connector/sqlserver.html):

    connection-url=jdbc:sqlserver://<host>:<port>;database=<database>
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-26
    • 2018-01-03
    • 1970-01-01
    • 2013-11-19
    • 1970-01-01
    • 2019-07-03
    • 2023-02-26
    • 1970-01-01
    相关资源
    最近更新 更多