command line - SQL 2005 Express Edition - Install new instance -


looking way programatically, or otherwise, add new instance of sql 2005 express edition system has instance installed. traditionally, run micrsoft's installer in command line below , trick. executing command in installer not issue, it's more matter of dragging around 40 mbs of ms-sql installer don't need if have sql express installed. installer executes:

sqlexpr32.exe /qb addlocal=all instancename=<instancename> securitymode=sql sapwd=<password> sqlautostart=1 disablenetworkprotocols=0 

i don't need assistance launching command, rather appropriate way add new instance of sql 2005 express without running full installer again.

i'd go great detail why want i'd bore everyone. suffice say, having ability create new instance without time takes reinstall sql express etc. assist me deployment of application , it's installer. if makes difference anyone, i'm using combination of nsis , advanced installer installation project.

it sounds user instance might you. if have mdf , ldf files, can connect files instructing sql server express launch user instance , attach specified file instance.

this artile http://msdn.microsoft.com/en-us/library/bb264564.aspx has description of how can lean on existing sql server express installation instantiate user-specific instance duration of connection.

hope helps.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -