0

I'm encountering the exact issue as described here(EF: Cannot attach the file ‘{0}' as database '{1}'). My question is how to run these commands in Package Manager Console of Visual Studio 2010 SP1:

  • sqllocaldb.exe stop v11.0
  • sqllocaldb.exe delete v11.0
  • update-Database

All these commands perfectly run in Package Manager Console of VS 2012, but when I try to run these commands in VS 2010 SP1, then VS 2010 SP1 cannot recognize them.

What are alternative commands in Package Manager Console of VS 2010 SP1?

Community
  • 1
  • 1
StepUp
  • 36,391
  • 15
  • 88
  • 148
  • localdb comes as part of VS2012 so it is probably in in the PMC path. Try putting the full path to sqllocaldb.exe, e.g. `C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe` – Rhumborl Dec 13 '14 at 12:14
  • @Rhumborl, like C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe stop v11.0? – StepUp Dec 13 '14 at 12:16
  • sorry wasn't clear, yes like `"C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe" stop v11.0`. Add quotes around the path because it has spaces in it – Rhumborl Dec 13 '14 at 12:20

0 Answers0