1

I am creating a script to install SQL Server via the command line.

I cannot see a way to choose the edition I want to install. The GUI on my install media offers Evaluation, Developer or Express:

(When I choose Evaluation, I can enter the product code)

enter image description here

The ConfigurationFile.ini generated by the installer does not seem to have any sort of reference to the edition that is being installed. Once I run the installer, it installs standard edition (verified by PRINT @@version)

How can I specify the edition I wish to install?

asked Nov 2, 2020 at 17:46

1 Answer 1

3

I found some information about your question.

There is a parameter when you set up on the command line which is /PID.

Check out the document.

Specifies the product key for the edition of SQL Server. If this parameter is not specified, Evaluation is used.

C:\SQLMedia\SQLServer2019> setup.exe /Q 
/IACCEPTSQLSERVERLICENSETERMS /ACTION="install" 
/PID="AAAAA-BBBBB-CCCCC-DDDDD-EEEEE" /FEATURES=SQL,AS,IS,Tools
/INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="MyDomain\MyAccount"

You can use this parameter with the product key.

Evaluation: 00000-00000-00000-00000-00000

Express: 11111-00000-00000-00000-00000

Developer: 22222-00000-00000-00000-00000

Excerpt from the blog of Pinal Dave.

answered Nov 2, 2020 at 18:12
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.