How to attach mdf file to the DB server while installing the application RRS feed

  • Question

  • Hi all,

    I have an application of which I have created the MSI file, that we are providing to our customers. But this application also has Database,
    and I want to provide the "mdf" and ''ldf" file of the database with this setup.

    My requirement is that the my setup should attach the "mdf" file in the database in SQL Server 2005 while installing the application.

    I have tried but my solution is not satisfying my requirement.

    So if any one has any solution to fulfill my requirement, then pls help me.

    Thanks in advance.

    Manish K.
    Tuesday, July 1, 2008 3:05 PM


  • You can consider Xcopy deployment if you're using SQL Server Express: or use some sql scripts (*.sql) to attach the database.

    And this forum is not the proper place to answer this question, please find more information from SQL Server forum.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by Figo Fei Monday, July 7, 2008 3:38 AM
    Thursday, July 3, 2008 3:32 AM