Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The whole <em>User Instance and AttachDbFileName=</em> approach is flawed - at best! Also, it's only supported by the <strong>Express</strong> edition of SQL Server - so if your hoster has anything other than <strong>Expres</strong>, you're basically screwed.</p> <p>The <strong>real solution</strong> in my opinion would be to </p> <ol> <li><p>install SQL Server Management Studio Express</p></li> <li><p>create your database in <strong>SSMS Express</strong>, give it a logical name (e.g. <code>MyDatabase</code>) </p></li> <li><p>connect to it using its logical <strong>database name</strong> (given when you create it on the server) - and don't mess around with physical database files and user instances. In that case, your connection string would be something like:</p> <pre><code>Data Source=.\\SQLEXPRESS;Database=MyDatabase;Integrated Security=True </code></pre> <p>and everything else is <strong>exactly</strong> the same as before...</p></li> </ol> <p>Now, when you go and upload your web site to the hosting site, you need to get the necessary SQL scripts to create and populate your database on the hosting site - you can do this by using <code>Tasks &gt; Generate Scripts</code> from the SSMS Express tool, or by some other means.</p> <p>Then, on the hosting site, you need to execute those SQL scripts to create and populate your database (and later on: execute the change scripts to keep the database up to date).</p> <p>Your connection string will also most likely change to something like:</p> <pre><code>Server=(ip-address-or-name);Database=MyDatabase;User ID=YourUserIdHere;Pwd=YourPassword </code></pre> <p>since the hosting provider doesn't use the <code>SQLEXPRESS</code> named instance (but most likely a <strong>default</strong> instance without any name). You need to ask your provider for the details - it could be that you have to provide some other instance name! That's totally up to the provider, we cannot know that - you'll have to ask and find out.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload