Discussion in 'ASP .Net' started by Guest, Jan 19, 2006.

  1. Guest

    Guest Guest

    Can I copy aspnetdb.mdf tp another computer and expect the ASPNet account to
    have rights to open this database? What is the proper way copy ASPNETDB to
    another webserver? What is the proper wat to admin aspnetdb.mdf on a
    non-development computer?
    Guest, Jan 19, 2006
    1. Advertisements

  2. Guest

    Bruce Barker Guest

    no. attaching a database requires sqladmin permissions (default with
    sqlexpress) but not something you'd want the account to have. you
    should supply a seperate installation script.

    -- bruce (
    Bruce Barker, Jan 19, 2006
    1. Advertisements

  3. Guest

    Joerg Jooss Guest

    Hello Arne,
    No. Machine1\ASPNET and Machine2\ASPNET are not the same principal. And on
    the same computer Windows Explorer's file copy will only preserve ASPNET's
    ACLs for a file if the ASPNET user performs the copy (thus becoming the copy's
    owner), or the parent directory has ACLs for ASPNET set.
    A simple CMD shell script that copies the MDF file and runs CACLS to set
    access permissions for ASPNET should do the trick.

    Joerg Jooss, Jan 19, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.