Configure SQL Server Session Database

I notice that sql to create the SQL Server database (InstallPersistSqlState.sql) basically creates the ASPState database. If I wanted to call it different, can I just replace it with my preferred database name? I understand the script, I just wanted to make sure that ASPState should not be the database name. Thank!

+3
source share
2 answers

edit is a promising bit of instructions for changing the default object on which session tables are written:

Use template files to set ASP.NET SQL state objects in a database other than the default ASPState database. To do this, follow these steps:

  • script, .
  • (, MyASPStateDB).
  • script DatabaseNamePlaceHolder .
  • SQL ASP.NET, script.

InstallPersistSqlState.Sql script ASPState InstallSqlState.sql, ( ). script , "ASPState" - , . , , .

+3

, - , . , , , , , , . , , " " sslState web.config. , , ASP.NET , "ASPState".

+1

Source: https://habr.com/ru/post/1725333/


All Articles