ここでは SQL 認証で運用を行う場合のユーザ管理手順についてまとめます。
基本はこちら
コマンドプロンプトを開き、以下のコマンドを入力
C:\>cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regsql.exe -A m -E
SQL Server Express を使っている場合は以下のようにする
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regsql.exe -A m -E -S <SQL Server Instance>
<connectionStrings> <remove name="LocalSqlServer" /> <add name="LocalSqlServer" connectionString="data source=127.0.0.1;Integrated Security=SSPI;Initial Catalog=aspnetdb" /> </connectionStrings>SQL Server Express を使っている場合は以下のようになる。
<connectionStrings> <remove name="LocalSqlServer" /> <add name="LocalSqlServer" connectionString="data source=<server name>\sqlexpress;Integrated Security=SSPI;Initial Catalog=aspnetdb" /> </connectionStrings>
Users.xml はSQL認証DBに登録するためのユーザ定義ファイルとなる。
> cd C:\Program Files\Microsoft Office Servers\12.0\Bin > PjFormsAuthUpgrade.exe -createemptyusersfile -log forms.log –url http://localhost/pwa -usersfile users.xml