problem in websetup project RRS feed

  • Question

  • User-773877292 posted


    i  visted the above link about websetup deployment and i tested the asp.net web project without database based on that article is working fine...but i want to use the database with the web project .so my doubt is how to create the primary output and how to add the custom action...

    please clarify my problem........

    Saturday, August 22, 2009 12:03 PM


  • User372121194 posted


    Based on my understanding, you want to create new Database for your web site when you run the Web Setup of your web application on the server. If I have misunderstood you, please feel free to let me know.

    You can create 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

    I hope this helps.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 26, 2009 11:45 PM