xsari3x
xsari3x

Reputation: 452

I've a sql database file I want to use asp_regsql.exe tool to put asp.net membership provider

I've a sql database file I want to use asp_regsql.exe tool to put asp.net membership provider
The connection that I use

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

Answers (2)

Kamyar
Kamyar

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

ysrb
ysrb

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

Related Questions