Wrox Programmer Forums
|
BOOK: Professional C# 4.0 and .NET 4
This is the forum to discuss the Wrox book Professional C# 4.0 and .NET 4 by Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner; ISBN: 9780470502259
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 4.0 and .NET 4 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 12th, 2010, 10:52 AM
Registered User
 
Join Date: May 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default Using SQL Server over Express

Hello All,

I'm sort of new to this, so please bare with me. I am working through the examples in Professional C# 4 and .NET 4 and have run into a snag in chapter 41, subtitle Sucurity. I am using SQL Server 2008 and the artical is using express. I bring up WebSite ASP.NET Configuration tool and mouse the Security tab. The error message that I get back is that it can not find the server. Is the fact that I am not using Express causing the problem and If it is, is there a book that you can recamend that can walk me through the security process using SQL Server?

Thanks for any help that you can provide.
 
Old September 30th, 2010, 05:25 PM
Wrox Author
 
Join Date: Sep 2010
Posts: 175
Thanks: 3
Thanked 53 Times in 53 Posts
Default

With SQL Server 2008 you first have to create the ASP.NET database and configure the connection string to reference this database:
1) in the directory of the .NET runtime you can find the tool aspnet_regsql. Starting this tool without options starts a wizard that you can use to create the ASP.NET database.
2) the database created in step 1 needs to be referenced from the membership and roles providers. You can change the LocalSqlServer connection string in the machine.config configuration file, so this change is active for all your applictations using a provider that makes use of this connection string. The default setting of LocalSqlServer makes use of a SQL Server Express database that is dynamicyally created if it doesn't exist.
__________________
Christian
CN innovation
Visit my blog at: csharp.christiannagel.com
Follow me on twitter: @christiannagel





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server 2005 vs SQL Server Express Rachel BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 May 9th, 2009 01:08 PM
Upgrade SQL Express to SQL Server timeware SQL Server 2005 2 August 27th, 2007 02:37 PM
SQL SERVER EXPRESS rht886 SQL Server 2005 1 March 21st, 2007 08:44 AM
VB Express and SQL server on remote server questio HoosierDaddy61 Visual Basic 2005 Basics 0 February 22nd, 2006 11:27 AM
Accessing a SQL Server Express DB thru VB Express djelavic SQL Server 2005 2 February 21st, 2006 07:53 PM





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