Restoring database on local machine

Discussion in 'Databases' started by wisemx, Feb 3, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,
    Have you tried the Wizards or DB Copy functions in your local version?
    This is not 2005 Express, right? Some of these functions only work in the 2008 Express version, never before the 2008 Express version.
    Salute,
    Mark

    Technical Evangelist for DiscountASP.NET

    Find ASP.NET code samples with my Dev Coop search tools below.
    Google
    Microsoft

    DiscountASP.NET Technical Webcasts:
    http://www.iis7test.com/webcasts/

    My Microsoft Technical Blogs
    http://weblogs.asp.net/markwisecarver/
    http://blogs.windowsclient.net/wisecarver/default.aspx
     
  2. Hi,
    I have backed up my database on DiscountAsp and want to restore it on my local machine for development purposes. I have an XP with SQL Server 2005 installed. When I select the .bak file to restore, I get:

    Restore failed for server 'DELL\SQLEXPRESS' (Microsoft.SqlServer.smo)

    System.Data.SqlClient.SqlError: The operating system returned the error '5(accessdenied.)' while attempting 'RestoreContainer::ValidateTargetForCreation' on C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\dbname.mdf'. (Microsoft.SqlServer.smo)

    I can see the database being restored is under user 'sa'. I tried to check the settings of the MSSQL folder but I don't see a security tab to check who has access to it.

    How can I restore this database to my local machine?

    TIA.
     
  3. Hi,
    Once I get back into the Webcasts I will be creating some on how to do this on DASP servers.
    I've done a Blog post about these features that may help for now:
    weblogs.asp.net/markwisecarver/archive/2009/01/19/import-export-wizard-is-not-copy-database-wizard.aspx
    Salute,
    Mark

    Technical Evangelist for DiscountASP.NET

    Find ASP.NET code samples with my Dev Coop search tools below.
    Google
    Microsoft

    DiscountASP.NET Technical Webcasts:
    http://www.iis7test.com/webcasts/

    My Microsoft Technical Blogs
    http://weblogs.asp.net/markwisecarver/
    http://blogs.windowsclient.net/wisecarver/default.aspx
     
  4. This is not 2005 express, it is 2005 enterprise.
    Not sure how to use any of wizard or db copy. I work mainly with .net and am not db savvy.

    Thanks.
     
  5. JorgeR

    JorgeR DiscountASP.NET Staff

    The operating system returning the error '5(accessdenied.)' is a local permission issue. If you are restoring the site locally and you are seeing this error it more likely a permissions problem.. Please make sure that the SQL service has appropriate permissions or make sure that is running under the Local System Account. IF you are using express, i believe the default is under the network service account. Please make sure the appropriate permissions are set


    junior

    DiscountASP.NET

    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page