Solved

Install SQL Server 2008 Express via command line

Posted on 2013-06-05
6
1,420 Views
Last Modified: 2013-06-11
I am trying to figure out the code to install SQL Server 2008 Express Engine from the command line as part of my installation package.  We previously used SQL Server 2005 Express Engine (upgrading the tool set), but SQL Server 2008 Express Engine installer has more required options (or, so it appears to).  The following does not work.  However, it processes for a while before it abruptly stops.  the screen disappears, and I have no idea what the problem is.  How do I create a log, and what is wrong with the below command line entry?  Thanks for any help.

SQLEXPR_x86_ENU.exe /qs /ACTION=Install /BROWSERSVCSTARTUPTYPE=Automatic /SQLSVCSTARTUPTYPE=Automatic /FEATURES=SQL /INSTANCENAME=MYDB /SAPWD="SQL2008UpgradePassword" /SQLSYSADMINACCOUNTS="sa" /SECURITYMODE="SQL" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /ISSVCACCOUNT="NT AUTHORITY\Local Service"  /RSSVCACCOUNT="NT AUTHORITY\Local Service"

The below previous version for SQL Server 2005 Express worked just fine, but I'm not sure how to get it working for 2008.

sqlexpr.exe /qb INSTANCENAME=TPSDB ASACCOUNT="sa" SAPWD="SQL2005UpgradePassword" ADDLOCAL=SQL_Engine,SQL_Data_Files SQLAUTOSTART=1 SECURITYMODE=SQL
0
Comment
Question by:spazjr01
  • 5
6 Comments
 
LVL 8

Expert Comment

by:didnthaveaname
ID: 39223686
You don't need the /sqlsysadminaccounts="sa".  

I did notice that in the BOL, it specifies issvcaccount and rssvcaccount as required, but I'm pretty sure that's only if those features are installed.

Additionally, for verbose progress, you can use /indicateprogress and just pipe it to a file, but i'm pretty sure the logging should be in: program files (x86)\Microsoft SQL Server\100\Setup Bootstrap\LOG
0
 

Author Comment

by:spazjr01
ID: 39224423
No matter what I do I cannot get either any basic command line installation of SQL Server Express 2008 to work, nor can I see log files in the mentioned directory.  At this point, after trying all day, I'd like someone to just give me the bare basic syntax for installing any SQL Server Express 2008 Engine instance.  Then, I could work toward what I need from there.  I've been all over the web using various examples and none have worked for me.  What gives?
0
 

Author Comment

by:spazjr01
ID: 39224426
And, what is the syntax for using /indicateprogress to "just pipe it to a file"? Can't find that example any where.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:spazjr01
ID: 39224454
Okay.  I finally found the log files.  Now, if I understand the error, it is failing because SQL Server 2008 is already installed.  I get this message in the log:  "No features were installed during the setup execution.  The requested features may have already been installed."  Now, I do have a default local instance of SQL Server 2008 installed.  But, I am now trying to install the TPSDB instance with the SQL Server 2008 Express installer.  I was able to do this all day long with 2005.  How do I solve this dilemma?
0
 

Accepted Solution

by:
spazjr01 earned 0 total points
ID: 39227287
Solved my own problem.  For 64-bit machines:

SQLEXPR_x86_ENU.exe /INSTANCEID=TPSDB /ACTION=INSTALL /FEATURES=SQLENGINE /INDICATEPROGRESS=False /QS /ERRORREPORTING=False /INSTANCEDIR="C:\Program Files (x86)\Microsoft SQL Server" /SQMREPORTING=False /INSTANCENAME=TPSDB /AGTSVCSTARTUPTYPE=Manual /ISSVCSTARTUPTYPE=Automatic /ISSVCACCOUNT="NT AUTHORITY\NetworkService" /ASSVCSTARTUPTYPE=Automatic /ASCOLLATION=Latin1_General_CI_AS /ASDATADIR=Data /ASBACKUPDIR=Backup /ASTEMPDIR=Temp /ASCONFIGDIR=Config /ASPROVIDERMSOLAP=1 /SQLSVCSTARTUPTYPE=Automatic /FILESTREAMLEVEL=0 /ENABLERANU=True /SQLCOLLATION=SQL_Latin1_General_CP1_CI_AS /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SECURITYMODE=SQL /ADDCURRENTUSERASSQLADMIN=True /TCPENABLED=0 /NPENABLED=0 /BROWSERSVCSTARTUPTYPE=Disabled /RSSVCSTARTUPTYPE=Automatic /RSINSTALLMODE=FilesOnlyMode /INSTALLSHAREDDIR="c:\Program Files (x86)\Microsoft SQL Server" /X86=True /SAPWD=SQL2008UpgradePassword

For 32-bit machines:
SQLEXPR_x86_ENU.exe /INSTANCEID=TPSDB /ACTION=INSTALL /FEATURES=SQLENGINE /INDICATEPROGRESS=False /QS /ERRORREPORTING=False /INSTANCEDIR="C:\Program Files\Microsoft SQL Server" /SQMREPORTING=False /INSTANCENAME=TPSDB /AGTSVCSTARTUPTYPE=Manual /ISSVCSTARTUPTYPE=Automatic /ISSVCACCOUNT="NT AUTHORITY\NetworkService" /ASSVCSTARTUPTYPE=Automatic /ASCOLLATION=Latin1_General_CI_AS /ASDATADIR=Data /ASBACKUPDIR=Backup /ASTEMPDIR=Temp /ASCONFIGDIR=Config /ASPROVIDERMSOLAP=1 /SQLSVCSTARTUPTYPE=Automatic /FILESTREAMLEVEL=0 /ENABLERANU=True /SQLCOLLATION=SQL_Latin1_General_CP1_CI_AS /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SECURITYMODE=SQL /ADDCURRENTUSERASSQLADMIN=True /TCPENABLED=0 /NPENABLED=0 /BROWSERSVCSTARTUPTYPE=Disabled /RSSVCSTARTUPTYPE=Automatic /RSINSTALLMODE=FilesOnlyMode /INSTALLSHAREDDIR="c:\Program Files\Microsoft SQL Server" /SAPWD=SQL2008UpgradePassword
0
 

Author Closing Comment

by:spazjr01
ID: 39237155
No one else provided a solution.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question