How to setup sessionState with SQL Server mode on Amazon RDS

╄→гoц情女王★ 提交于 2019-12-01 13:15:34
Nonu Thakur

I've solved my issue create session DB on Amazon RDS.

  1. Create ASPState DB on AWS RDS and database and schema migration using Following Tool SQLAzureMW v5.15.6 Release Binary for SQL Server 2014.
  2. Change DB Name on sessionState mode="SQLServer" allowCustomSqlDatabase="true" sqlConnectionString="data source=amazon-server-name;initial catalog=ASPState;persist security info=True;user id=userid;password=password" cookieless="false" timeout="100">

You can use sql server session state on SQL RDS.

You just need to comment out the parts of the InstallSqlState.sql that have to do with creating SQL Server Agent jobs. The script is used when running the aspnet_regsql.exe command. It's located in the framework folder right next to that exe. It doesn't gracefully handle failing to create the jobs, so it doesn't do any of the other steps to install session state.

Here's what my InstallSqlState.sql ultimately looked like: http://pastebin.com/QJDXC093

Or alternately, you can run the aspnet_regsql.exe command on a database where you do have permissions to create jobs and then use the import/export feature in management studio to move the resulting database schema from your database to RDS.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!