-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
The required IACCEPTMSODBCSQLLICENSETERMS=YES command-line parameter is missing. #131
Comments
Hey There If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution. |
@mrswadge Thank you for opening this issue. We will see if we can get that issue reproduced and a sensible fix out. Thanks again for taking the time to track that down. |
Thanks for the swift response @TheLunaticScripter I've done some further digging and it appears the error messages in the Command Line Utilities installer regarding dependencies are a mess. If you install ODBC Driver 11, the Command Line Utilities still complains about missing ODBC Driver 11. The error message is incorrect and it actually depends upon ODBC Driver 13.1. I figured that I would try to install newer versions of the tools, but ODBC 17 (link) has an additional dependency on Visual C++ 2017 (link). This combination is compatible with Command Line Utilities 15 (link). Perhaps going a little off-topic for this bug report, but I'm not sure that I need all of the client software installed, I only need ODBC and the Command Line Utilities. What I'm attempting to do via my cookbook is allow an offline (aka air-gapped) install of the clients, but there doesn't appear to be a way of limiting the install to a couple of packages as the list is hardcoded in recipe/client.rb Thanks, |
To keep my project moving forward I have done the following within my cookbook which is essentially aimed towards wrapping the sql_server cookbook to provide offline installer packages. I have created
The attributes that I use in my cookbooks
Apart from getting the install directory, I suppose that I'm not really using the sql_server cookbook, but perhaps in the future I'll be able to make heavier use of it. Hope this is useful in some way. Cheers, |
@mrswadge Sweet I'm glad you were able to get a workaround. So the direction of this cookbook is to move as much of the current recipe based content into custom resources. Currently, the server installation has been moved over but there hasn't been a demand to move the client install pieces over yet. I think using the library and then your own use of the package install is the best implementation and is going to give you the most flexibility. I'm going to keep this issue open just to track the bug but it will probably be a while before I can get around to that custom resource. |
Cookbook version
5.5.0
Chef-client version
14.11.21
Platform Details
Windows Server 2016 connecting to SQL Server 2016 on another host.
Scenario:
Cannot install SQL Server Native Client as the terms constant for the MsiExec installer are not the same as in the
recipe\client.rb
file.Steps to Reproduce:
Created a cookbook with a dependency on the
sql_server
cookbook viametadata.rb
.Added Attributes:
Recipe simply calls through to sql_server::client cookbook via include_recipe.
Expected Result:
Successful installation of SQL Server Native Client and SQL Server Command Line Utilities.
Actual Result:
Further investigation shows that the provided IACCEPTSQLNCLILICENSETERMS=YES is incorrect as it should be IACCEPTMSODBCSQLLICENSETERMS=YES
You cannot install the Command Line Utilities without the ODBC drivers.
The Microsoft website also states "there is no SQL Server 2016 Native Client." (https://docs.microsoft.com/en-us/sql/relational-databases/native-client/applications/installing-sql-server-native-client?view=sql-server-2017)
The text was updated successfully, but these errors were encountered: