Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrading DNN to MS SQL Server 2008???Upgrading DNN to MS SQL Server 2008???
Previous
 
Next
New Post
6/17/2010 1:16 AM
 
Well, this is embarrassing...

I need to upgrade several DNN sites running different DNN versions (4+), but the server is running MS SQL Server 2000 Personal Edition (default instance), and cannot be upgraded to MS SQL Server 2008.


So, I have MS SQL Server 2008 installed as a named instance, but cannot seem to get DNN to connect to it. I can connect using Server Studio, but not with DNN.


I have tried the connection string using both "Data Source" and "Server" = "computername\SQLserverInstanceName", but no luck. It won't connect. I keep getting errors telling me that the user cannot connect.


I have double and triple checked that the user name and password are correct, and that it has database owner permissions.


Could somebody please help out with some suggestions or point me to some resource that will get me started?


I've spent a day and a half on it, and will be experimenting with new DNN installations, but I need to get these other sites upgraded to SQL Server 2008 so that I can upgrade the DNN installations themselves.


Thank-you in advance for any help!
 
New Post
6/17/2010 2:40 AM
 
Hi Ryan,

Have you configured Named Pipes to be open? Checked firewall settings if it's not localhost?

Also, you should be able to attach the databases from SQL 2000 and their format can be upgraded.

HTH's
 
New Post
6/17/2010 4:14 AM
 
Hello Dave,

Thanks for chiming in.

Yes. I configured Named Pipes to be open and checked the firewall settings. I copied the MDF and LDF SQL Server 2000 database files to the default SQl Server 2008 data folder then attached them there. I then created the same user name with the same password in MS SQL Server 2008.

Attaching went smooth, and I couldn't see any problems. (Logged in as sa.)

Incidentally, I just tried logging in to Microsoft SQL Server Management Studio with the DNN site user name and password (as above), and the login failed. (DOH!)

I have a sneaking suspicion that this is my real problem, and that I probably should have been paying more attention to SQL Server 2005 and 2008 over the past several years... (2000 was working fine -- it's hard to break off that love affair with Enterprise Manager and Query Analyzer... :) )

I'm obviously screwing this up out of ignorance of SQL Server 2008.

Any pointers to straighten me out? (I'll continue to look into this and will post back when/if I figure out which brand of ignorance/idiocy I am suffering from.)

Thanks again!
 
New Post
6/17/2010 7:28 AM
Accepted Answer 
Two more possibilities:

1. Confirm that SQL Server 2008 is configured for both Windows Authentication AND SQL Server Authentication (Mixed Mode).

2. Often following restore or attach to a different SQL Server instance you will experience "orphaned" users. Although the username and password of the database login and that of the SQL Server login match, internally the two logins refer to users with different security id's. This should re-sync the two logins:

a. Login to the database with SQL Server Management Studio using Windows authentication or as the sa user,

b. Run the following query against the datbase with name of databaename, olduser representing the old userid and newuser representing the new user. Since you have already created a SQL Server login with the same username, both olduser and newuser will be the same:

USE [databasename]
GO

EXEC sp_change_users_login "Update_One", "olduser", "newuser"
GO


Note that all parameters should be within quotes.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
6/17/2010 9:36 AM
 
Thanks for chiming in as well, Bill!

As it turns out, it was the orphaned user problem. I'd tried near everything I could think of or solutions to problems that were in any way similar. I found something similar to your suggestion here. The solution posted was:
Try this connecting with the Windows user and selecting your database

sp_change_users_login 'report'

If your application user is listed there, then run

sp_change_users_login 'auto_fix', 'your_user'
Anyways, I've got 1 of the sites up and running now.

Thanks again for the help! Muchly appreciated~! =D

(For anyone with a twisted sense of humor, the site is here -- It is NSFW, but fun.)
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrading DNN to MS SQL Server 2008???Upgrading DNN to MS SQL Server 2008???


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out