Skip to content

Translate a named server to an IP address for the user #426

Description

@alison985

One thing I found while troubleshooting other things is that SERVER=company-sql-dev won't work but SERVER=1.1.1.1 will, when company-sql-dev is the named version of the server with the IP address 1.1.1.1.

I manually got the server IP address from running this query on the SQL Server itself. SELECT CONNECTIONPROPERTY('local_net_address') AS local_net_address

However, this StackOverflow Answer seems like it may be a way to auto-translate a named server variable in dbt YML into the server IP address to pass to the connection string auto-magically for the user. It would be especially nice because it would get the IP address without the user having to have an existing connection to the server to run the query(e.g. first time setup).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions