SQL login fails in VS project but not LINQPad application
I'm using the NuGet package to run LINQPad scripts in a Visual Studio project. In the LINQPad application I can add a MSSQL database connection and create a script using that connection which will work fine, but in the project when using LINQPad.Util.Run on the same script there's a connection error: Login failed for user [username].
I can see that the connection information is part of the LINQPad file, so what would cause the SQL authentication to work in the application but fail in the project when using LINQPad.Util.Run? My versions are LINQPad 5 v5.43.00 and LINQPad NuGet package v5.40.0.