Solved

Install SQL Server 2008 Express via command line

Posted on 2013-06-05
6
1,416 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now