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?
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.
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/