Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 September 26th, 2007, 02:32 PM
Registered User
 
Join Date: Sep 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Database Server Transition

I moved the database that VS2005 automatically generates to the web host's SQL Server 2005. I then redefined the connection string to point to the new server location and I have no problem accessing any of the tables there. However the membership/roles provider still uses the old database when I try to do things like create/edit a user's profile. Basically, if MS wrote the class the controls it; it doesn't work. I would have thought the connection string would suffice, but apparently not. In "Professional ASP.NET 2.0 (special edition)" on Page 735, the author says the db is created automatically for you when it's required in the App_Data folder. That's nice and all, but how do I tell it to stop using the stupid thing and use mine instead; which btw is simply a restore of a backup I did of the existing one? TIA

 
Old September 26th, 2007, 02:39 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at this article: http://weblogs.asp.net/scottgu/archi...25/423703.aspx that explains how "to stop using the stupid thing and use [your database] instead".

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old September 26th, 2007, 03:02 PM
Registered User
 
Join Date: Sep 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Exactly what I needed. Should have chose my keywords better when I googled it. Thanks!

 
Old September 26th, 2007, 03:04 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, look at it from the bright site. Future developers with the same problem will now find this page when they Google for "stop using the stupid thing".... ;)

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
Transition to .NET..... how difficult? BananaJim ASP.NET 2.0 Basics 3 November 2nd, 2006 12:44 PM
Accessing the server Database dcarroll ASP.NET 2.0 Basics 1 October 10th, 2005 04:15 PM
IIS server, connection to offsite database server Hazzardusa Classic ASP Databases 1 August 14th, 2005 10:03 PM
Server and Database Help! youyou_hym Dreamweaver (all versions) 3 January 8th, 2005 03:45 AM
Access Problems. Creating a Transition Table rumblepup Access 6 December 23rd, 2003 06:44 PM





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