tpope / vim-dadbod

dadbod.vim: Modern database interface for Vim
https://www.vim.org/scripts/script.php?script_id=5665
3.75k stars 132 forks source link

[Windows] DB: 'env' executable not found #163

Closed cjhillbrand closed 8 months ago

cjhillbrand commented 8 months ago

OS: Windows 11 Shell: cmd.exe nvim: v0.10.0-dev-2400+g8952a89db

It seems I am running into a bit of an issue when trying to provide a URL for my SQL Server hosted in Azure using SQL credentials. The url that I am providing takes the form: sqlserver://mySqlServer.windows.net:1143;database=MyDatabase;user=myUsername;password=myPassword

I have confirmed that I can connect using sqlcmd by running in cmd.exe sqlcmd -S mySqlServer.windows.net -d MyDatabase -U myUsername -P myPassword

The one thing that comes to mind is that the password does contain special characters '@' and '#', although looking at the sqlserver.vim adapter I dont see anything that would do anything with these characters. So maybe a deadend thought.

Lastly, to reiterate the title, the message returned from the command is DB: 'env' executable not found

Thanks for taking a look, and let me know if there is anything worth trying on my end.

tpope commented 8 months ago

This was fixed in #159.