none
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.

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

Answers

  • You can consider Xcopy deployment if you're using SQL Server Express: http://msdn.microsoft.com/en-us/library/ms165716.aspx 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.

    Thanks.
    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