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 Commented 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 ? Commented Mar 25, 2013 at 5:55
  • Use silent installation method for sql server installation Commented Mar 25, 2013 at 6:03
  • codeproject.com/Articles/113480/… Commented Mar 25, 2013 at 6:04

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Is there any way to handle that using runtime setup installation ?
The reason is it will everytime check in the try catch block on my startup form of c# application

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.