Reputation: 452
I've a sql database file I want to use asp_regsql.exe tool to put asp.net membership provider
The main problem that I can't use the asp_regsql.exe to add the tables that I need , I tried various of connections , If some one got a CREATE sql file that contains the membership table construction it would help ,
Thank you in advance
Upvotes: 0
Views: 315
Reputation: 18797
Check out this tip I have written in code project. Simply, you can call the following once:
System.Web.Management.SqlServices.Install("YOUR_DATABASE", SqlFeatures.All, "YOUR_CONNECTION_STRING");
Upvotes: 2
Reputation: 6740
You can find the SQL script @ %WINDOWS%\Microsoft.NET\Framework\v2.0.50727\InstallCommon.sql Source: https://web.archive.org/web/20211020203214/https://www.4guysfromrolla.com/articles/040506-1.aspx
Upvotes: 1