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

  • SEARCH
  • Home
  • 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 8161041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:24:48+00:00 2026-06-06T18:24:48+00:00

I have created a Visual Studio 2010 ASP.NET Web Application. I’ve noticed that if

  • 0

I have created a Visual Studio 2010 ASP.NET Web Application. I’ve noticed that if you change the line

 <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />

to attach a database of your choosing if it hasn’t been created yet, membership services will create it for you. For instance if you change “aspnetdb.mdf” to what ever “mynewdb.mdf” when that database file does not exist it will get created and tables etc will be generated.

If I have a remote sql server, all I know is Server Name: ATLAS-SQL-07 and I have the username and password to access the database. How do I then get membership services to auto generate the tables and stored procedures in that database?

  • 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-06-06T18:24:49+00:00Added an answer on June 6, 2026 at 6:24 pm

    Check out the tutorial creating-the-membership-schema-in-sql-server-cs found on asp.net.

    Note: in this tutorial when it asks for the server you give it the fully qualified web path for your server. This information should be provided in your hosting account web portal.

    This quote from msdn.microsoft.com may also give you more insight into what you are wanting to do.

    The ASP.NET SQL Server Registration tool is used to create a Microsoft
    SQL Server database for use by the SQL Server providers in ASP.NET, or
    to add or remove options from an existing database. The
    Aspnet_regsql.exe file is located in the
    [drive:]\%windir%\Microsoft.NET\Framework\version folder on your Web
    server.

    You can run Aspnet_regsql.exe without any command-line arguments to
    run a wizard that will walk you through specifying connection
    information for your SQL Server installation, and installing or
    removing the database elements for the membership, role management,
    profile, Web Parts personalization, and health monitoring features.

    It seems that your host does not allow remote connection. http://www.123-reg.co.uk/support/answers/Hosting/Databases/how-do-i-connect-remotely-to-my-database-778/

    However, after further research you should be able to import the database in. Therefore, you can create the databse properly locally and import everything use the interface provided by your host. http://www.123-reg.co.uk/support/answers/Databases/Windows-MSSQL/how-do-i-import-export-a-mssql-database-793/

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

Sidebar

Related Questions

I have created a Visual Studio 2010 ASP.NET Web Application. With it I have
We have a ASP.Net web application running in Visual Studio 2010 that is targeting
I'm currently using Visual Studio 2010 and have created a 'ASP.NET MVC 3 Web
I have an ASP.NET project that I have created in Visual Studio 2010. So
When I create a ASP.NET MVC web application in Visual Studio 2010 it offers
We’ve created an ASP.NET MVC 4.0 (Beta) web site with Visual Studio 2010. The
I have created a sample web application in Visual Studio 2010. It stores Membership
I'm using asp.net(C#) under visual studio 2010 I have a panel that is by
I have two IIS websites, namely accounts.example.com that was created in Visual Studio 2010
I'm using ASP.NET web forms in Visual Studio 2010. How can I create UI

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.