You can accomplish this by still using the aspnet_regsql tool provided with the .NET framework. However, there is an option -sqlexportonly that allows you to output the scripts it generates so you can run them directly on the hosting database you do have access to.
Here are the steps:
Open a command prompt and run the aspnet_regsql tool as follows but replacing TestDB with your database name
Command to Create the Add Scripts:
Here are the steps:
Open a command prompt and run the aspnet_regsql tool as follows but replacing TestDB with your database name
Command to Create the Add Scripts:
aspnet_regsql -d TestDB -A all -sqlexportonly C:\ASPNET_SQLMembershipProviderTestDB.sql
Command to Create the Remove Scripts:
aspnet_regsql -d TestDB -R all -sqlexportonly C:\ASPNET_SQLMembershipProviderTestDBRemove.sql
Here is a screenshot:
Here is a screenshot:
Now you can run the scripts (Add or Remove) as needed for the database you are trying to install this on.
You can visit here to get ASP.NET 4.0 hosting.


No comments:
Post a Comment