none
How do I maintain the association between a database's catalog and physical file if the latter is renamed or moved? RRS feed

  • Question

  • WHAT I HAVE:

    Visual Basic 2010, .NET 4.0, Entity Framework 4.0, SQL Express

    MY PROBLEM:

    Suppose I've created a database with a given catalog and file name, but I later want to (programmatically) move or rename the file. How do I ensure that the catalog points to same file with its new name/location?

    i.e., Suppose catalog is ThisDatabase and file is ThisPath\ThisFile.mdf, but the latter becomes ThatPath\ThatFile.mdf. How do get ThisDatabase to point to ThatPath\ThatFile.mdf?


    Robert Gustafson

    Monday, May 12, 2014 6:09 AM