1. MSSQL에서 CustomMemberShip Database 생성및 계정 추가
2. cmd 실행
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319>
aspnet_regsql.exe
DB 이름 선택, 연결 하여 끝냄
3. web.config 설정
<configuration>
<connectionStrings>
<add name="ConnectionString"
connectionString="server=SERVERNAME;
database=CustomMembership;uid=userid;password=userpassword;"/>
</connectionStrings>
<system.web>
<roleManager defaultProvider="CustomProvider" enabled="true">
<providers>
<add connectionStringName="ConnectionString"
name="CustomProvider"
type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>
<membership defaultProvider="CustomMembershipProvider">
<providers>
<add name="CustomMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="ConnectionString" />
</providers>
</membership>
끝