Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 March 27th, 2007, 09:30 AM
Registered User
 
Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default HELP!!! Active Directory and SQL

Hi Everyone,

I am having a really BIG problem over here…

My web site, which is heavily borrowed from, Damon Armstrong, is working great! However, I need to modify it just a little bit.

The site is in C#, (http://stage.rivier.edu), and it is a Web Parts portal, if-you-will. And I want to authenticate against Active Directory, as well as insert the users into the database, so it will remember user’s settings. Right now, I am using the ASPNET.MDF database through VS 2005. Ideally though, I would like to use SQL Server. But, I cannot attach to the database through SQL Server; I get errors.

Anyway, this is KILLING me!!!

I am fairly new to all of this and I need to have this done for, “testing” by April 2nd. I really need some help. I know I sound desperate… But that’s because I am.

Thank you all for any help you can give me. It is GREATLY appreciated, and I only hope I can lend a helping hand in the future.

Cheers,

Dan


 
Old March 27th, 2007, 09:42 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Ok, first you did NOT have to spam the board with identical posts to get a reply. This is more annoying then helpful to your cause.

Do you have any version of SQL Server installed that you are trying to attach the MDF to? What version of SQL was the MDF created in?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old March 27th, 2007, 09:52 AM
Registered User
 
Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm sorry dparsons, you are right. I just know that with some boards, people can be round-about, and redirect you to another forum, like: Next time, you'll want to post this in the [fill_in_the_blank] forum. But you're right, I shouldn't have done that and I apologize.

Now, to answer your question. I do have SQL Server 2000 installed, as well as SQL Express. The MDF is actually the MDF file that VS 2005 and SQL Express creates, which is the default: ASPNET.MDF.

Hope that helps, and thanks again!

 
Old March 27th, 2007, 10:01 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

This would solve the 2000 vs 2005 issue:

http://weblogs.asp.net/scottgu/archi...25/423703.aspx

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
Want to be my colleague? Then check out this post.
 
Old March 27th, 2007, 10:01 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Imar will probably need to correct me (or provide a simpler solution) on this as using Visual Studio to manage my database files is not my forte.

If you have the ability to create a backup of the database, you could use the .BAK file to populate a database in your SQL Server instance but, like I said, I have no experience with this so I do not know if that is even an option.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old March 27th, 2007, 10:26 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You can't restore a SQL 2005 to a 2000 instance.

However, you can use DTS or other methods (like scripting the data) to move the data from the 2005 version to 2000.

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
Want to be my colleague? Then check out this post.
 
Old March 27th, 2007, 10:31 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Imar, thanks for clearing that up. I didn't imagine you could but I have never tried so didn't know. ^^

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old March 27th, 2007, 11:56 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

FYI: you can't do the reverse either. Both type of .bak files are tied pretty much to their respective versions.

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
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Active Directory Sync SQL CoolEJ SQL Server 2000 1 October 17th, 2007 11:44 AM
HELP!!! Active Directory and SQL ddicecca ASP.NET 2.0 Professional 2 March 28th, 2007 08:21 AM
HELP!!! Active Directory and SQL ddicecca C# 2005 0 March 27th, 2007 09:28 AM
Active Directory and SQL Server Collaboration Belzemus C# 1 January 6th, 2006 11:30 AM





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