Change ASPNETDB.mdf Location

Last post 11-19-2008 6:28 AM by shyamalpan. 3 replies.

Sort Posts:

  • Change ASPNETDB.mdf Location

    03-25-2008, 9:46 PM
    • Member
      1 point Member
    • ndiffenbaugh
    • Member since 03-26-2008, 1:35 AM
    • Posts 2

    I have a site configured to use the ASP.net Login control and understand that it requires the ASPNETDB.mdf file
    to be located in the App_Data directory.  However, my hosting provider requires me to put all SQL databases in a different
    location.  Where can I change the location to indicate that the ASPNETDB.mdf file is in a different directory?

    Filed under:
  • Re: Change ASPNETDB.mdf Location

    03-26-2008, 12:00 AM
    Answer
    • Contributor
      3,391 point Contributor
    • XPSCodes
    • Member since 03-12-2008, 3:17 AM
    • New Jersey
    • Posts 464

     Change AttachDBFilename to point to the right folder.

    For e.g AttachDBFilename=C:\Database\ASPNET.mdf 

    Save our world, its all we have! A must watch video Pale Blue Dot

    Please use the search feature of the forum before asking a question.
  • Re: Change ASPNETDB.mdf Location

    03-26-2008, 9:59 AM
    • Member
      1 point Member
    • ndiffenbaugh
    • Member since 03-26-2008, 1:35 AM
    • Posts 2

    Thanks!  I'll give it a try.

  • Re: Change ASPNETDB.mdf Location

    11-19-2008, 6:28 AM
    • Member
      2 point Member
    • shyamalpan
    • Member since 11-19-2008, 6:24 AM
    • Vallabh Vidyanagar, Gujarat, India
    • Posts 1
    I had same problem, I tried your solution, it is not working. I need to deploy aspnetdb on MSSQL 2005 on server
    - Shyamal Pandya
Page 1 of 1 (4 items)