Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2009, 01:18 PM
Authorized User
 
Join Date: Jul 2006
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default Slow SQLExpress in Visual Studio

I was finding that opening the ASPNETDB.MDB database in the server explorer window was taking an age with the default configuration.

My solution after hours of trawling the web was:

1. In SQL Server Management Studio Express(free download), attach the ASPNETDB.MDB from your TheBeerHouseVB\TBH_Web\App_Data folder and name it BEERHOUSE or similar

2. Still in SQLMS, right-click on BEERHOUSE, click on options, change 'auto-close' to 'false' (which is the default for SQLServer non Express editions)

3. Add a data connection in the VS Server Explorer window instead of the ASPNETDB.MDB (this connection will reappear if you try and delete it but it can be ignored). When you click on the Server Name dropdown ~./sqlexpress.beerhouse.dbo should appear as you have already added it in SQLMS.

4. Then alter the connection string in web.config (modify for your own settings obviously):
<add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Initial Catalog=BEERHOUSE;Integrated Security=True" providerName="System.Data.SqlClient"/>



and you end up with a VS Server Explorer which doesn't take 2mins to view an SP. It still takes 10 secs on 1st opening but much better than before.

Last edited by jimjamjo; May 10th, 2009 at 06:09 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQLExpress, Visual Web Developer, Vista Bob Bedell ASP.NET 2.0 Professional 1 December 18th, 2007 08:23 AM
sql2005 management studio very slow lucycastaldo SQL Server 2005 0 November 22nd, 2007 06:41 PM
Visual Studio 2003 vs. Visual Studio 2005 eitanbarazani C# 2005 4 May 9th, 2006 01:34 AM
Visual Studio .net2003 and Visual Studio 2005 Gert Visual C++ 1 January 24th, 2006 05:10 AM
Visual studio 6 or visual studio .NET chaitannyam Visual C++ 1 November 13th, 2005 09:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.