I'm pretty sure this is the only thing you can do from the command line
install, See this reference:
http://msdn2.microsoft.com/en-us/library/ms143446(SQL.90).aspx
To enable listening for connections you will have to enable the SQL Browser
(unless you install SQL Express as the default instance). The easiest way
to do this from your setup program is to use the Surface Area Configuration
command line utility (sac utility). Look here for more information on doing
this:
http://msdn2.microsoft.com/en-us/library/ms162800(SQL.90).aspx
and here for Express setup in general:
http://msdn2.microsoft.com/en-us/library/ms143441(sql.90).aspx
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm [quoted text, click to view] <jroozee@gmail.com> wrote in message
news:1146088083.313332.39640@i40g2000cwc.googlegroups.com...
>I am trying to package SQL Server Express 2005 with my application. I
> got it to self install just fine and I am passing the
> DISABLENETWORKPROTOCOLS=0 to the setup file to enable remote
> connections, BUT still, after it's all installed I still am having a
> problem with the TCP connection for each IP address being disabled. I
> can not figure out how to self install SQL Server Express 2005 and
> automatically configure the TCP connection to be enabled and also
> preset the port to 1433?
>
> Here's what I got so far:
>
> SQLEXPR.EXE /qb INSTANCENAME=SQLExpress ADDLOCAL=SQL_Engine
> SAPWD=xe15wz DISABLENETWORKPROTOCOLS=0 SECURITYMODE=SQL
>
> Any ideas?
>
> Jason Roozee
>