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 6677615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:08:38+00:00 2026-05-26T04:08:38+00:00

I installed Visual Studio 2008 Professional(updated with SP1), then I uninstalled SQL server 2005

  • 0

I installed Visual Studio 2008 Professional(updated with SP1), then I uninstalled SQL server 2005 Express and installed SQL Server 2005 Standard.

now I am not able to add ‘SQL Server Database’ to the project – it says
Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly.

Is it not compliant with SQL Server Standard version?

And Login Controls also not working-
Web Administration Tool says
Unable to connect to SQL Server database

Also tried with aspnet_regsql command-line utility.. not working..(actually I dont know what is to be done after creating SQL server database through ‘aspnet_regsql command-line utility’)

Please Provide a solution for my problem before somebody Closes this question or marks for deletion ;P 🙂

  • 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-26T04:08:39+00:00Added an answer on May 26, 2026 at 4:08 am

    The functionality to just attach a stand-alone .mdf file as a database is indeed available in the Express editions of SQL Server only.

    What you should do in any other case is create the database on the SQL Server instance, and refer to it by its database name – not it’s .mdf file name.

    In order to create those tables and stored procedures needed for the ASP.NET membership and role subsystem, you need to use the aspnet_regsql utility against your SQL Server instance. You said that didn’t work – how does it not work?? Did you get an error ?? If so: what error??

    See the MSDN docs on aspnet_regsql for details on how to use it. To create the ASP.NET membership and role subsystem, use:

    aspnet_regsql -S (your server name here) -E -A mr
    

    The -E uses integrated security (e.g. your current Windows logon) to connect to SQL Server – that user accounts needs enough permissions for these operations, of course! If you need a specific SQL Server user, there’s are the two -U (username) -P (password) parameters to achieve this.

    Once you have all of this, you also need to configure your ASP.NET membership and role subsystem to actually use that new database (ASPNETDB) that was created on your SQL Server. By default, they use the aspnetdb.mdf file attached to your SQL Server Express instance. Since you’ve changed that, you need to update your configuration! See how to do this in detail on MSDN

    Step 1: add a connection string to your newly created database

    In your web.config or app.config, add a valid connection string to your newly created ASP.NET membership/role database – something like:

    <configuration>
       <connectionStrings>
          <add name="ASPNETDB_Connection" 
               connectionString="Server=YourServer;database=aspnetdb;Integrated Security=SSPI;" />
      </connectionStrings>
    

    Step 2: – add a valid configuration for the ASP.NET membership subsystem and reference that new connection string you’ve just added in Step 1; something like:

    <configuration>
       <system.web>
          <membership defaultProvider="YourProvider" userIsOnlineTimeWindow="15">
              <providers>
                 <clear />
                 <add name="YourProvider" 
                      type="System.Web.Security.SqlMembershipProvider" 
                      connectionStringName="ASPNETDB_Connection"
                      applicationName="MyApplication"
                      enablePasswordRetrieval="false" enablePasswordReset="true"
                      requiresQuestionAndAnswer="true" requiresUniqueEmail="true"
                      passwordFormat="Hashed" />
              </providers>
          </membership>
    

    Step 3: do the same for the role subsystem:

    <configuration>
       <system.web>
          <roleManager defaultProvider="YourProvider" enabled="true" cacheRolesInCookie="true" >
              <providers>
                 <clear />
                 <add name="YourProvider" 
                      type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"                 
                      connectionStringName="ASPNETDB_Connection"
                      applicationName="MyApplication" />
              </providers>
          </roleManager>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Visual Studio 2008 Professional SP1. On my PC, SQL Server 2008
I have installed Visual Studio 2010 (final) and then Visual Studio 2008. Now I
I installed Visual Studio 2008 Professional in my machine and It had installed SQL
I'm now working on RC Windows 7 and installed Visual Studio 2008 Professional edition. But I
I have Visual Studio 2008 SP1 Professional installed. I have built a C++ application
I have been using windows XP. I installed visual studio 2008 and sql server
I just installed SQL Server 2005 and it installed Visual Studio 2005 too. What's
I am using in built sql server 2005 which comes with visual studio 2008
Can Visual Studio Professional 2008 and Visual C++ Express 2008 be installed side by
I use Visual Studio 2008 Professional with .NET 3.5 SP1 installed. It is not

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.