Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > BOOK: Professional C# 4.0 and .NET 4
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
  #2 (permalink)  
Old September 30th, 2010, 05:25 PM
Wrox Author
Points: 1,163, Level: 13
Points: 1,163, Level: 13 Points: 1,163, Level: 13 Points: 1,163, Level: 13
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Location: Austria
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:56 PM.


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