Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,
I Created a new sql server instance in XP machine in .NET using follwing Code. But in Windiows 7/Vista machine it doese not create the instance.
*********************************************************************
@echo off
rem 	Performs SQL Desktop Engine Setup


cls

echo *
echo     Unattended SQL DESKTOP ENGINE starting.
echo *
echo *
echo     Waiting for DESKTOP ENGINE Setup to finish...

rem =================================
rem What Platform?
rem =================================

@echo on
start /wait ServicePack\SQLEXPRWT_x86_ENU.exe /QS /ACTION=Install /IACCEPTSQLSERVERLICENSETERMS /ERRORREPORTING=0 /FEATURES=SQLEngine /INSTANCENAME=NewINSTANCENAME /BROWSERSVCSTARTUPTYPE=Disabled /SECURITYMODE=SQL /SAPWD=PWD /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /SQLSVCSTARTUPTYPE=Automatic /TCPENABLED=1 /SQLSYSADMINACCOUNTS="Everyone" /AGTSVCACCOUNT="NT AUTHORITY\SYSTEM" /AGTSVCSTARTUPTYPE=Disabled

@echo off
:END
:DONE
********************************************************************

Help me to Solve this Problems.....
Posted
Updated 7-Feb-11 19:51pm
v2

1) Put a @pause before the end, save the file, then run it to see if an error message is displayed.

2) Right click on your batch file and click Run as Aministrator.

Do you get the same results?
 
Share this answer
 
Hi Baldwin,
Its Worked fine..
Thanks a lot.

But i want to install from .Net Program.I start this Batch File using SHell Command.

Shell(FileName, AppWinStyle.Hide, True, -1)




Regards,
Saran.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900