Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alison985 opened this issue Jul 19, 2023 · 0 comments
Open

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

alison985 opened this issue Jul 19, 2023 · 0 comments

Comments

@alison985
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant