Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7069763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:29:07+00:00 2026-05-28T05:29:07+00:00

I have a question about using form authentication in ASP.net MVC. I ran aspnet_regsql

  • 0

I have a question about using form authentication in ASP.net MVC.

I ran aspnet_regsql against the SQL 2008 server database that my MVC 3 application is using. This created a new database in my server. I can now login and secure my controllers.

My question is this: Should I change the database where my application stores its data? Or am I supposed to use two databases, one for security and another for my application?

Thank you for any advice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:29:08+00:00Added an answer on May 28, 2026 at 5:29 am

    You can do it either way. You can combine the security and application data into a single database, or you can keep them as two separate databases. Which you choose depends upon personal preference and the complexity of your application database. You may wish to keep them separate so that the tables are separated by their function into separate databases. On the other hand, this will make your database maintenance a bit more complicated, since now you will have to back up two databases and, in the case of a disaster, restore two databases instead of only one.

    Edit:
    As you pointed out in your comment, if you split these into two databases and you want to have a foreign key reference from your application database to your authentication database, this can be a problem. Sql Server does not support cross-database foreign key references. If this is a deal-breaker for you, you can either 1) combine both databases into a single database, or 2) look into some of the work-arounds to circumvent this lack of support for cross-database foreign key references. If you choose to go this second route, there is a good stackoverflow post on this issue that you might want to start with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing my first asp.net mvc application and I have a question about custom
I have a question about using streams in .NET to load files from disk.
I have a question about the returnUrl querystring parameter that is appended by ASP.Net
I have a question about stopping spoofed form submissions. How about if by using
I have question about managing transaction in asp.net application. For example i have application
I have a question about using os.execvp in Python. I have the following bit
I have a question about using new[] . Imagine this: Object.SomeProperty = new[] {string1,
i have a question about using GalleryView. At first, i set five default images
I have a question about using subqueries in an Update statement. My example: UPDATE
I have what I hope is a fairly simple question about using the value

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.