1

I have a c# application that which contains a database in SQL server 2005. I wish to first install sql server 2005, create the database, tables in that database during run time i.e. during installation of my c# application. The setup wizard should install all this and then install my c# application.

I went through msdn walkthroughs but the solution is in visual basic.

Please help.

4
  • Can you provide more details
    – Greg
    Mar 25, 2013 at 5:52
  • @Greg My c# application is for some sales application. whenever i create a setup of my application on any machine sql server 2005 should get installed first. My databases, tables should be installed second and then my c# application should be installed. How can this be done ? Mar 25, 2013 at 5:55
  • Use silent installation method for sql server installation Mar 25, 2013 at 6:03

1 Answer 1

1

After installation of your application, first check your DB on Login form / Start up form. If your DB not exists in DBMS, restore the back of your DB at run time.

2
  • Is there any way to handle that using runtime setup installation ? Mar 25, 2013 at 6:09
  • The reason is it will everytime check in the try catch block on my startup form of c# application Mar 25, 2013 at 6:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.