Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 26th, 2007, 02:32 PM
Registered User
 
Join Date: Sep 2007
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old September 26th, 2007, 02:39 PM
Imar's Avatar
Wrox Author
Points: 72,022, Level: 100
Points: 72,022, Level: 100 Points: 72,022, Level: 100 Points: 72,022, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,076
Thanks: 80
Thanked 1,587 Times in 1,563 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
Reply With Quote
  #3 (permalink)  
Old September 26th, 2007, 03:02 PM
Registered User
 
Join Date: Sep 2007
Location: , , .
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!

Reply With Quote
  #4 (permalink)  
Old September 26th, 2007, 03:04 PM
Imar's Avatar
Wrox Author
Points: 72,022, Level: 100
Points: 72,022, Level: 100 Points: 72,022, Level: 100 Points: 72,022, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,076
Thanks: 80
Thanked 1,587 Times in 1,563 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
Reply With Quote
Reply


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
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



All times are GMT -4. The time now is 01:59 PM.


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