Creating an installation site

Last post 07-13-2008 10:16 AM by jamboy. 2 replies.

Sort Posts:

  • Creating an installation site

    06-18-2008, 7:34 PM
    • Loading...
    • jamboy
    • Joined on 05-25-2005, 9:23 AM
    • Posts 30

    Hi all just a quick question, whats the best way to create an installation section of a site so when user go to admin section for the first time it will ask for sql server location, password and username, once provided it will trigger a .sql file which will create db on sql server.

     Your help would be very much appreciated

    Thanks Conrad

  • Re: Creating an installation site

    06-20-2008, 5:09 AM
    Answer

    Hi,

    You can create Web Setup project and custom action to create new Database while installing. To do so, you need to create a text file that contains a SQL statement to create a database and need to know the connection string used to connect server and the user should have proper permission on server, and then you can execute SQL statement to create database in custom action.

    For more information, see http://msdn.microsoft.com/en-us/library/49b92ztk.aspx and http://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx


     
    I hope this helps.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: Creating an installation site

    07-13-2008, 10:16 AM
    • Loading...
    • jamboy
    • Joined on 05-25-2005, 9:23 AM
    • Posts 30

    Thank you very much... it sure helps

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter