Apparent BUG With SQL Server 2005 Express Silent Install /qb Command Line ( SQLEXPR.EXE/qb ) And Displaying Errors.
Dec 12, 2005
I am using installshield to distribute SQL Server 2005 Express. I have the SQLEXPR.EXE file and I want to run it in /qb mode so the user can see the pretty dialogs pop up but not have to click anything.
View 6 Replies
ADVERTISEMENT
Feb 20, 2008
Hi,
I would be very grateful if someone could take a look at my command line install and offer advice on if I am doing it correctly.
The reason I am asking is because I cannot seem to get the server installed without having errors during the installation:
"The SQL Server (MSSQLSERVER) service terminated with service-specific error 17113 (0x42D9)"
Looking at the server error log indicates that master.mdf was not in the data directory (I have however specified a different data directory for ease of backup by our software and this is created during the install but does not have this database in the data directory - it is however in the template data directory!
I also get this error when the SQL Server service is started:
"The SQL Server (SQLEXPRESS) service terminated with service-specific error 3417 (0xD59)."
All advice is welcome. Please see below my batch file. Also, if you think I should do this in a different way then please let me know. I basically want to install SQL server on a customer computer and automate the install so the custoemr does not need to enter any information.
The goal of this install is:
[1] Deply a custom .Net application and SQL server at the same time on the same computer without user input.
[2] Allow remote .Net applications (designed by myself also) to connect over a LAN (and later maybe over a WAN) to the database to the above database.
The command line is this (I have also included the batch file I am usign below). For ease of reading I have put the parameters on a new line below:
setup.exe /qb
username="CustomerUsername"
companyname="OurCompany"
addlocal="SQL_Engine,SQL_Data_Files,SQL_Replication,Connectivity,SDK"
disablenetworkprotocols="0"
instancename="MSSQLSERVER"
INSTALLSQLDATADIR="c:SqlData"
USESYSDB="c:SqlData"
SAVESYSDB="1"
SQLAUTOSTART="1"
SECURITYMODE="SQL"
SAPWD="#StrongPaSSword#"
======= Batch file Start ======
SET MODE=/qb
SET SETUP_EXE=sqlfilessetup.exe %MODE%
SET SQLDATADIR=c:SqlData
SET SET_USERNAME=username="CustomerUsername"
SET SET_COMPANYNAME=companyname="OurCompany"
SET SET_ADDLOCAL=addlocal="SQL_Engine,SQL_Data_Files,SQL_Replication,Connectivity,SDK"
SET SET_DISABLENETWORKPROTOCOLS=disablenetworkprotocols="0"
SET SET_INSTANCENAME=instancename="MSSQLSERVER"
SET SET_INSTALLSQLDATADIR=INSTALLSQLDATADIR="%SQLDATADIR%"
SET SET_SAVESYSDB=SAVESYSDB="1"
SET SET_USESYSDB=USESYSDB="%SQLDATADIR%"
SET SET_SQLAUTOSTART=SQLAUTOSTART="1"
SET SET_SECURITYMODE=SECURITYMODE="SQL"
@REM === RE-INSTALL PARAMS - NOT CURRENTLY BEING USED?? SHOULD I ADD THESE ALSO? ===
SET SET_REINSTALLMODE=REINSTALLMODE="omus"
SET SET_REINSTALL=REINSTALL="SQL_Engine,SQL_Data_Files,SQL_Replication,Connectivity,SDK"
SET SET_REBUILDDATABASE=REBUILDDATABASE="1"
SET SET_SAPWD=SAPWD="#StrongPaSSword#"
@REM === START THE SETUP / RE-INSTALL ===
START %SETUP_EXE% %SET_USERNAME% %SET_COMPANYNAME% %SET_ADDLOCAL% %SET_DISABLENETWORKPROTOCOLS% %SET_INSTANCENAME% %SET_INSTALLSQLDATADIR% %SET_USESYSDB% %SET_SAVESYSDB% %SET_SQLAUTOSTART% %SET_SECURITYMODE% %SET_SAPWD%
======= Batch file End ======
Your advice is kindly welcome.
Thank you
Kind regards
Paul
View 2 Replies
View Related
Mar 10, 2008
Hi,
I am trying to setup my install script to install SQL Express 2005 using the SQL Security Mode
and setting the SA Password by passing in parameters from the command line.
setup.exe SECURITYMODE=SQL SAPWD="123456"
This runs the install, but still prompts me during the installation to enter an SA Password.
Thanks.
Same problem with
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=194313&SiteID=1
View 6 Replies
View Related
Nov 8, 2006
I keep getting sqlbrowser service could not be validated when I try to run slqservr32 from a vbscript on the commit event. I basically need to create an instance on the customers local machine, and give them say a sql login and password with sqlbrowser and everything else required so I can connect to it and create the databases we have. I use the following command line args.
Sqlserv32 /q /qn instancename=someinstance addlocal=all sapwd=@StrongPwd Sqlaccount=anaccount sqlpassword=pass agtaccount=anaccount agtpassword=pass sqlbrowseraccount=abrowseraccount sqlbrowserpassword=pass disablenetworkprotocols=0 securitymode=sql
Im not sure what to do. I cant configure anything or start the sqlbrowser service because its not installed yet. I need to create new logins hence im using the command line install. Does anyone have any suggestions? im stuck.
View 1 Replies
View Related
May 16, 2007
Hello,
I'm using the latest version of SQLEXPR32.EXE found here :
http://www.microsoft.com/downloads/details.aspx?FamilyID=31711d5d-725c-4afa-9d65-e4465cdff1e7&DisplayLang=en
Here is the command line that fails :
"sqlexpr32.exe -q /norebootchk /qn reboot=ReallySuppress
INSTANCENAME=MYINSTANCE SECURITYMODE=SQL SAPWD=mypassword SQLAUTOSTART=1"
Interrestingly, when the following command line is used to launch the setup,
it completes successfully :
"sqlexpr32.exe /norebootchk reboot=ReallySuppress INSTANCENAME=MYINSTANCE
SECURITYMODE=SQL SAPWD=mypassword SQLAUTOSTART=1"
The only difference between the two is the quiet switches used in the first
case : "-q" and "/qn"
After spending some time to understand what is going wrong, it seems that in
quied mode, Setup Prerequisite 'SQL Native Client' is not installed. Then
the remaining part of the setup fails because of this.
Any help appreciated.
View 7 Replies
View Related
Nov 9, 2007
What is the correct command line parameters to SQLEXPR32.exe that will default the Log On As: properties for the instance to use the Built-in account of Local System & Local Service?
I need it to be set to Local System immediately on install without having to go into the configuration manager. When I run the SQLEXPR32.exe right now I get the Network Service defaulted.
Thanks for any help,
Greg
greg@ram-software.com
View 4 Replies
View Related
Oct 19, 2006
Hi,
I'm trying to install SQL Express 2005 with Reporting Services using Install Shield 11.5. The command line parameters which i am using is:
/qn ADDLOCAL=SQL_Engine,SQL_Data_Files,RS_Server,RS_Web_Interface,Client_Components SECURITYMODE=SQL SAPWD=<password> DISABLENETWORKPROTOCOLS=0 RSCONFIGURATION=Default RSSQLLOCAL=1 AUTOSTART=1
It installs the SQL Server and Reporting Services. It configures (creates Virtual Directories for report server and database) but it is not initializing the Report Server.
Having done the installation when i check the Report Server Status it was running and everything seems to be OK except it wasn't initialized.
Any idea??
Thanks,
Moby.
View 4 Replies
View Related
Sep 27, 2007
Hello, I'm currently trying to install SQL SERVER 2005 Express through the command line and I'm having problems.
The command I'm currently giving is:
SQLEXPR32.EXE /qb INSTANCENAME=MSSQLSERVER ADDLOCAL=ALL SQLACCOUNT=name SQLPASSWORD=password AGTACCOUNT= name AGTPASSWORD=password SQLBROWSERACCOUNT=name SQLBROWSERPASSWORD=password
Everything goes on fine until the SQL Server Database Sersvices configuring and a pop-up says the following:
SQL Server Setup could not validate the service accounts. Either the service accounts have not been
provided for all of the services being installed, or the specified username or password is incorrect. For
each service, specify a valid username, password, and domain, or specify a built-in system account.
I have no idea how to come over this.
Any help would be appreciated.
PS I don't know what AGTACCOUNT or AGTPASSWORD is, so maybe the error might be there. If not, anybody willing to explain to me what it is, it would be GREATLY appreciated.
View 2 Replies
View Related
Aug 15, 2006
When doing a unattended install of Microsoft SQL Server Express, I have a problem specifing the service to installed to be run under the as local system account.
I'm using: SQLACCOUNT & SQLPASSWORD parameters but it just won't work.
As default SQL Server is installed using the NETWORK SERVICE account, this causes the database to be read-only. What I want is to specifiy in the script that the service should run under the LOCAL SYSTEM account instead. This must also be OS-language independent.
I've tried:
SQLACCOUNT=NT AUTHORITYSYSTEM
SQLACCOUNT=NT AUTHORITYLOCAL SYSTEM
SQLACCOUNT=NT AUTHORITYLOCAL SERVICE
SQLACCOUNT=SYSTEM
SQLACCOUNT=BUILT-INSYSTEM
etc.
and even some different SID as:
S-1-5-18
S-1-5-19
All with no password with the SQLPASSWORD parameter:
SQLPASSWORD=
I still getting the same error while validating the service account.
Is there someone else who knows what I'm doing wrong?
Best regards,
Mattias
View 5 Replies
View Related
May 10, 2006
The program shortcut "Visual Studio 2005 Command Prompt" seems to be mising from the "Visual Studio 2005 Command Prompt" Start menu added by the current Microsoft SQL Server 2005 Express Edition Toolkit. Where is it? How to workaround?
I am trying to do Download details SQL Server 2005 Samples and Sample Databases (April 2006) -> GettingStartedWithSQLSamples.htm which says "a. Open a Microsoft Visual Studio 2005 command prompt. Click Start, point to All Programs, point to Microsoft Visual Studio 2005, point to Visual Studio Tools, and then click Visual Studio 2005 Command Prompt." but I can find no such command prompt within "Visual Studio Tools", only "Visual Studio 2005 Remote Debugger{, Configuration Wizard}".
What's wrong? How to fix or workaround? I'd install .NET SDK 2.0 to get it's Command Prompt but that's about 570MB merely for a command prompt!
Thanks for your help, -Mike Parker
View 1 Replies
View Related
Aug 25, 2007
I can't get SQL Server 2005 to update to SP2 in either silent or unattended mode. None of the standard switches work. I've used -s, -m, /q, /qb, and /qn all with no favorable result. I am still prompted for user input at every screen. Suprisingly I've had no such problems with the express edition, just the server itself. Is there a way to make this thing work? Here is the line I've been feeding to the installer.
"<SERVER_PATH>SQL Serversql2005SP2.exe" start /wait setup.exe /qb /settings "C:SQLSettings.ini" /L*v "C:SQLInstall.log" /norestart
I have also tried the following since it looks like the file that is unpacked by the SP2 install is actually hotfix.exe
"<SERVER_PATH>SQL Serversql2005SP2.exe" start /wait hotfix.exe /qb /settings "C:SQLSettings.ini" /L*v "C:SQLInstall.log" /norestart
I also have tried the following generics:
"<SERVER_PATH>SQL Serversql2005SP2.exe" -s
"<SERVER_PATH>SQL Serversql2005SP2.exe" -m
"<SERVER_PATH>SQL Serversql2005SP2.exe" /q
View 3 Replies
View Related
Aug 4, 2006
I'm currently building an MSI to install SQL Express and want to install as a new instance, not the default instance, and not into the SQLEXPRESS instance either.
I saw the package.xml for Express in my VS Studio install. How would I go about using this? Or would I have to modify the MSI via Orca or something? I hope not. Wouldn't have a clue where to start.
In short, regardless if there is already an SQL Express instance on the machine or not, I need to silently install a fresh new instance of the server engine only, no client tools except sqlcmd.exe
I have seen that MS would advise that everyone use the SQLEXPRESS instance but I don't agree with it. I don't want other application installs trampling over my server settings and I don't want to trample over others. For example, expose others to TCPIP and CLR when they don't need it, and conversely others swithing them off in a shared server instance when I do need them.
View 7 Replies
View Related
Feb 16, 2008
I can't find a command line where to write the queries for SQL Server express.
Can someoane give me a link with some documentation?
Thank you.
View 1 Replies
View Related
Mar 25, 2008
Hi
I need to Install the SQL server 2008 express with Instance name and Sa password parameter in silent mode . I tried couple of command line arguments for this. but It didn't work, I got the setup failure error message
"The setting 'QB' specified is not recognized.Error code 0x84B40003."
Can any one help me with this?
These are the commands I tried.
1) sqlexpr.exe /qb instancename="MACHINENAMESQLEXPRESS2008" SCCCHECKLEVEL=IncompatibleComponents:1;MDAC25Version:0 ERRORREPORTING=1 SQLAUTOSTART=1 SAPWD="PWD" SECURITYMODE=SQL DISABLENETWORKPROTOCOLS=0"
2)SQLexpr.exe /qb /ACTION=Install /FEATURES=SQL /instancename="MACHINENAMESQLEXPRESS2008" SAPWD="PWD" SECURITYMODE=SQL
Thanks in advance.
Regards,
Nav.
View 1 Replies
View Related
Feb 21, 2008
Hi,
I want to build a silent setup/installation of MS-SQL-Server-Express 2005 for installation on customers computers.
I want to integrate it in my own setup/installation routine of my application.
How can I do that?
Where can I get Infos or tutorials? Perhaps here ?
Sorry for my bad english
Regards Tron
View 7 Replies
View Related
Oct 9, 2006
Hey all,
Cool place! Has anyone deployed SQL Express silently using one click and an attached a smart client DB from within the app ... would love to see some of the best practices or horror stories! Just kidding... :) I'm about to deploy a smart client using SQL Express and could use some tips from someone who has been there.
Thanks in advance,
Bill
View 7 Replies
View Related
Aug 17, 2006
Yet another roadblock: Does the standard SQL SE 2005 not install any of the query commands? (isql, isqlw, or osql.exe's). I could have sworn that they were, but every time I go to test the install on my VM none of them are ever installed. If it doesn't is it included in the advanced version of it (which I'd really rather not do)? If still no what's the easiest option I still have open? Can I have my app connect to the master db and run a restore script from the app? I've been arm wrestling with this install for over a week and it's just about brow-beaten me completely.
TIA,
Jayyde
View 3 Replies
View Related
May 4, 2007
I am trying to create an quiet install for SQL Server Express. The install is being run under a local administrators account. However, when a user, who is only in the local users group, accesses the application using ClickOnce deplolyment, it says SQL Server Express Edition is not installed.
-Dan
View 1 Replies
View Related
Mar 9, 2007
Our application installation setup needs to be able to detect:
Is SQL Server 2005 Express Installed?
If false, run the SP2 Installation
Is SQL Server 2005 Express or SQL Express SP1 Installed?
If false, run the SP2 Installation with Update Switch
Is SQL Server 2005 (not Express) Installed
If true, abort installation with a mesage.
Can you direct me to some documentation about testing for these environments or just if someone has some scripts that will run in InstallShield, that would be great.
ALSO, can you direct me to information about using the command line update switch for the Express SP2 Installer?
Thanks.
Pat
View 1 Replies
View Related
Nov 28, 2005
I am trying to install SQL Server 2005 Express, but it fails.
View 6 Replies
View Related
Feb 13, 2008
Hi,
I have a problem about the SP2 installation with using command line in vbscript.
In the vbscript, I use the command line as follow.
'Command line parameters to install SQL Server 2005 Service Pack 2
Set WSHShell = WScript.CreateObject("WScript.Shell")
strAppsp2 = "c:sqlsetupSP2SQLServer2005SP2-x64.exe /Passive /quiet"
WSHShell.Exec(strAppsp2)
set shell = createobject("wscript.shell")
...
But it cannot install the SP2.
Then I tried to test the command line again at the command prompt
c:sqlsetupSP2SQLServer2005SP2-x64.exe /allinstances /passive
After that the SP2 installation box is shown but I need to install in unattend mode.
Would you please suggest me the command line to install the sp2 in unattend mode.
Regard,
View 2 Replies
View Related
Jun 29, 2007
I can't get the download to work...i've tried regular sql server express 2005, the express for sp2 and the express with advanced services. I keep getting this message after the native client and support files are installed.."This application has failed to start because XOLEHLP.dll was not found. Re-installing the application may fix this problem."Then right after that message is says... "Failed to load SQLSpars.dll"
View 1 Replies
View Related
Dec 12, 2007
Hi there
I've just finished writing a script to install our SSIS packages using dtUtil.exe
We also have a whole bunch of legacy dts packages that we maintain. At the moment we rely on these being manually installed - I'm looking to automate this effort (I'm holding back a rant about 6hr production deployments due to people not being able to follow simple instructions)
Didn't find too much out there on this.. unless I'm missing something obvious, it wouldn't be the first time.
Anyone else out there have a solution to this?
thanks
View 8 Replies
View Related
Apr 25, 2006
Greets everyone...
I am using the Command Line to install SQL Server Express (SSE) on client machine. Below is long Command Line we are using.
setup /qb ADDLOCAL=SQL_Engine,Connectivity SQLXML SECURITYMODE=SQL SAPWD=#SmartPlus01# INSTANCENAME=SPSERVER DISABLENETWORKPROTOCOLS=0
When I try to connect to SSE from a client's machine using the 'sa' account, I get a connection failure message. Interesting enough, when I fire up Management Studio, it shows (under the server properities) that the server is still using "Window Authentication". I want to force Mix-mode authentication. According to SQL-BOL I need the SECURITYMODE=SQL and the SAPWD =<StrongPassword> params to use MixMode. Am I missing something in the command line to use MixMode authentication?
Another pair of eyes looking at this would be great.
P.S. Although Windows Authentication is the prefered method, sometimes it just doesn't fit for everything we need to do.
Thanks in advance
-Juan Garcia, MCP
Arbitron, Inc
juan.garcia@arbitron.com
View 1 Replies
View Related
Jan 31, 2008
Hello,
Can anyone tell me how to install SQL Server 2005 from command line, so that sqlservr.exe would log on as "Local System" and not as "Network Service"?
Regards.
View 3 Replies
View Related
Aug 11, 2015
trying to run ssms.msi failed with code 29506....then i am trying to use command line but i do not know how to do this.
View 4 Replies
View Related
May 26, 2006
I am using a windows xp sp 2. I have visual web developer 2005 express edition. .net Framework 2. but when i downloaded the sql 2005 express edition. when i click on the sqlexpr.exe. I receive a message " sqlexpr.exe is not a valid win32 application".
just to try I downloaded the framework 2. for win32 , when i click on the exe file I receied the same message.
Well someone help me please with the sql server. i have almost given it up and using this tool for my last resort.
Thanks
trying hard
View 4 Replies
View Related
Oct 25, 2011
I am trying to push the install for ReportBuilder 3.0 and am having an issue with the REPORTSERVERURL option for installing via command line.I have a batch file that works fine, however when I launch the app it does not have a report server configured. I have verified I can connect to my report server if I enter it manually.
View 3 Replies
View Related
May 29, 2007
I have a desktop application in which I use Sql Server CE.
It all works well on my development machine.
It also works on other machines if I copy the sql dll files in the same path as the .exe
I'm trying to avoid all kinds of user interaction. They don't need to know that I'm about to install Sql Server CE really
So I'm hoping to avoid writing in the manual that the user should install SQLServerCE31-EN.msi, which I think is the correct install package.
So my question is: How do you silently/unattended install Sql Server CE on the desktop?
View 1 Replies
View Related
May 16, 2007
Is here any way to update Mobile database from command-line program that ie;
reads sql commands from text file, run query analyzer, insert readed data to SQL tab and deploy these commands?
Or any other way to do this?
View 3 Replies
View Related
Mar 1, 2006
Hi,
I'm looking for a solution to run querys (create databases ed) after a silent installation of SQL 2005 Express edition (example with a .sql file). So users can run a installation unattended with all databases installed and so on.
What I got is a document about how to run a silent installation (document " Using Command Prompt Options to install SQL Server Express") but this docs there's no solution how to run querys after the installation.
Thanks
Robert-Paul
View 4 Replies
View Related
Aug 8, 2007
Hello,
I'm installing SQL express from command line, and using something like that:
/qb INSTANCENAME="SQLEXPRESS" ADDLOCAL="All" SECURITYMODE="SQL" AGTACCOUNT="konrad" AGTPASSWORD="*******" SQLBROWSERACCOUNT="konrad" SQLBROWSERPASSWORD="*******" SQLACCOUNT="konrad" SQLPASSWORD="*******" SAPWD="********"
but after installation process security mode is still set to windows authorization
I realy don't know what is wrong
View 4 Replies
View Related