-
Notifications
You must be signed in to change notification settings - Fork 249
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
having issues getting connection string to work against Azure SQL #343
Comments
First, I'll say that this is not supported, at the moment. We should look into whether we should let the Sql Connection itself decide what is a valid connection string or not, to be future-proof. Secondly, have you got this working with e.g. sqlcmd? Have you set up an ADFS server, etc, as describede here? |
we did get this to work. the issue was we had to change the connection string format to be csharp format. |
Glad you got it to work! Could you please explain a bit what you mean by "Csharp format"? Do you have an example on what you tried first, vs. what you actually had to do in the end? You originally tried:
What did you end up with? |
I just stumbled upon this issue today and solved it. What garthbf is probably referring to is the following (Notice the space and the backslash): "Data Source=(local);Initial Catalog=Database;Authentication=\"Sql Password\";Application Name=MyApp" |
thanks, |
the wiki page needs to be updated to explain this. |
@garthbf can you please share the working solution? |
I've stumbled upon a similar issue that I can't seem to fix. Please let me know if I should create a seperate issue for this. I'm trying to use roundhouse to patch an sql server in azure. This connection string is working from the application itself, but roundhouse throws an error.
The error message I get is:
My fear was that you weren't supporting the azure ad password authentication mode with System.Data.SqlClient, but I tried to build the executable from source after updating to Microsoft.Data.SqlClient and that didn't help any either. What else could be wrong here? |
we are trying to run against Azure SQL that has Azure AD to auth. the Auth option of ActiveDirectoryIntegrated is givign an error.
We tried both ODBC and ADO connection string formats and the same error
Invalid value for key "authentication'
Running Command: .\RH.exe /c="Server=tcp:,1433;Database=,Uid=;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;Authentication=ActiveDirectoryIntegrated" /f="mypath
" /o="mypath\logs" /dc /silent
Error:
Invalid value for key 'authentication'.
System.ArgumentException: Invalid value for key 'authentication'.
at System.Data.Common.DbConnectionStringBuilderUtil.ConvertToAuthenticationType(String keyword, Object value)
at System.Data.SqlClient.SqlConnectionStringBuilder.set_Item(String keyword, Object value)
at System.Data.Common.DbConnectionStringBuilder.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnectionStringBuilder..ctor(String connectionString)
at roundhouse.databases.sqlserver.SqlServerDatabase.initialize_connections(ConfigurationPropertyHolder configuration_property_holder)
at roundhouse.infrastructure.app.ApplicationConfiguraton.build_items_for_container(ConfigurationPropertyHolder configuration_property_holder)
at roundhouse.infrastructure.app.ApplicationConfiguraton.build_the_container(ConfigurationPropertyHolder configuration_property_holder)
at roundhouse.console.Program.set_up_configuration_and_build_the_container(String[] args, Mode mode)
at roundhouse.console.Program.Main(String[] args)
The text was updated successfully, but these errors were encountered: