p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Basics (http://p2p.wrox.com/forumdisplay.php?f=136)
-   -   Database Server Transition (http://p2p.wrox.com/showthread.php?t=62371)

nowak September 26th, 2007 02:32 PM

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


Imar September 26th, 2007 02:39 PM

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

nowak September 26th, 2007 03:02 PM

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


Imar September 26th, 2007 03:04 PM

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


All times are GMT -4. The time now is 01:50 AM.

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