Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 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 Professional 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:26 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 28th, 2007, 01:29 AM
Authorized User
 
Join Date: Feb 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

If you couldn't attach the dayabase try to attach it using the following query, it is good to use especially if you don't have the .LDF file
any how open the query analyzer if it is SQL 2000 or the management tool if it is SQL2005 and write the following query replacing the database name with yours and the data base place with your databse path

  exec sp_attach_db @dbname=N'CLASSIFIEDSDB',
     @filename1=N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\CLASSIFIEDSDB.mdf'

Before executing the query remember to choose the Master Database in the Avalaible Databases DropDownList

This is working

If not state the raised errors

Good luck


 
Old March 28th, 2007, 08:21 AM
Registered User
 
Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Nesrine,

Thank you for the suggestion, but this is the error I received:

Server: Msg 602, Level 21, State 50, Line 1
Could not find row in sysindexes for database ID 13, object ID 1, index ID 1. Run DBCC CHECKTABLE on sysindexes.

Connection Broken







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 General .NET 7 March 27th, 2007 11:56 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.