using System.Diagnostics;
void InstallExpress()
{
Process p = new Process();
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = Application.StartupPath.Trim() + @"\SqlServer2005 Express\SQLEXPR.EXE";
psi.Arguments = "/qn username=\"CustomerUsername\" companyname=\"OurCompany\" addlocal=ALL disablenetworkprotocols=\"0\" instancename=\"MyInstance\" SECURITYMODE=\"SQL\" SAPWD=\"mypassword\"";
p.StartInfo = psi;
p.Start();
}
Thanks dude for the update... it really helped me... i got stuck in it... u saved me... thanks a ton !!!
ReplyDeletethe problem of data corruption in the files of specified format can be fixed by the file magic sql server will not start utility
ReplyDeleteWould you tell me how to install sql server database in other system using c# installation file.my project is ready but i don't know how to install database in other system with my c# project.
ReplyDelete