I recently downloaded a sample application from the Telerik website and was unable to run it on my machine, on which only Developer Server SP1 for SQL Server 2008 is installed, until I found and replaced all "User instance = True" with "User instance = False" .
Before anyone goes and earns their panties, everyone wriggles in a knot, first listen to me. My circumstances may be (but should not be) unique in that, instead of installing SQL Server 2008 Express, just to run sample applications (such as Telerik), I just installed a second named instance of SQL Server, which you guessed is sqlexpress on my copy of SQL Server 2008 Developer Edition. Thus, when the Telerik demo application (or you call it) tries to connect to "Data Source =. \ Sqlexpress", then there is nothing wiser that what it really connects is also a "big SQL Server" (this is what SQL Server Developer Edition for the purposes of this publication).
The key conecpts (I dare say "cash quote") that you need to understand are as follows:
SQL Express permits (actually accepts, if absent) User Instance = True, so if you run a named instance of sqlexpress with "large SQL" (Developer, Standard, Enterprise or Data Center), you just need to find / replace User Instance = True with Custom instance = False in the connection string and your worries are done. Even the "Attach Database" material (which I see in the Telerik connectionStrings connection section of your web.config) works with "big SQL" (contrary to what someone posted earlier in this thread).
Here is an example taken directly from the web.config file of the web.config Telerik file after I “fixed it”:
<connectionStrings> <add name="NorthwindConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Northwind.mdf;Integrated Security=True;User Instance=False" providerName="System.Data.SqlClient"/> <add name="TelerikConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Telerik.mdf;Integrated Security=True;User Instance=False" providerName="System.Data.SqlClient"/> <add name="NorthwindConnectionString35" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Northwind.mdf;Integrated Security=True;User Instance=False" providerName="System.Data.SqlClient"/> <add name="TelerikConnectionString35" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Telerik.mdf;Integrated Security=True;User Instance=False" providerName="System.Data.SqlClient"/> <add name="NorthwindEntities" connectionString="metadata=res://*;provider=System.Data.SqlClient;provider connection string="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Northwind.mdf;Integrated Security=True;User Instance=False;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient"/> <add name="TelerikEntities" connectionString="metadata=res://*;provider=System.Data.SqlClient;provider connection string="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Telerik.mdf;Integrated Security=True;User Instance=False;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient"/> <add name="EditorFileBrowserDatabase" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|EditorDBStorage.mdf;Integrated Security=True;User Instance=False" providerName="System.Data.SqlClient"/> </connectionStrings>
Fred morrison
source share