<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SQL Server on Marko Apfel</title><link>http://blog.marko-apfel.de/tags/sql-server/</link><description>Recent content in SQL Server on Marko Apfel</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 21 Oct 2012 12:35:00 +0200</lastBuildDate><atom:link href="http://blog.marko-apfel.de/tags/sql-server/index.xml" rel="self" type="application/rss+xml"/><item><title>Entity Framework: Connecting to a mdf user database file via localDB during script execution</title><link>http://blog.marko-apfel.de/posts/entity-framework-connecting-to-a-mdf-user-database-file-via-localdb-during-script-execution/</link><pubDate>Sun, 21 Oct 2012 12:35:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/entity-framework-connecting-to-a-mdf-user-database-file-via-localdb-during-script-execution/</guid><description>&lt;h2 id="problem"&gt;Problem&lt;/h2&gt;
&lt;p&gt;If you run the &lt;em&gt;Generate database from model&lt;/em&gt; wizard and execute the generated script the destination database could be the wrong one (for instance master of the SQL Server).&lt;/p&gt;
&lt;h2 id="solution"&gt;Solution&lt;/h2&gt;
&lt;p&gt;To use an own &lt;code&gt;mdf&lt;/code&gt; attachable user database some connection information must specified during script execution.&lt;/p&gt;</description></item><item><title>Entity Framework, Code First: where is the database?</title><link>http://blog.marko-apfel.de/posts/entity-framework-code-first-where-is-the-database/</link><pubDate>Sat, 20 Oct 2012 17:26:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/entity-framework-code-first-where-is-the-database/</guid><description>&lt;p&gt;With Entity Framework 5 in Visual Studio 2012 the code first feature could let you come to the question “Where is the automatically created database located?”&lt;/p&gt;
&lt;p&gt;I run in the question after changing the model which throws during the next run this error:&lt;/p&gt;</description></item></channel></rss>