1. Configururar Web.Config
mode=»SQLServer»
stateConnectionString=»tcpip=127.0.0.1:42424″
sqlConnectionString=»data source=127.0.0.1;Integrated Security=SSPI»
cookieless=»false»
timeout=»20″
/>
2. Correr el SQL Script en el Command Prompt
OSQL -S SQLServerName -E < InstallSqlState.sql
3. Crear un archivo .SQL con el siguiente script
GO
DECLARE @s varchar(50)
SELECT @s = @@servername + ‘ASPNET’
EXECUTE sp_grantlogin @s
EXECUTE sp_grantdbaccess @s, ‘webuser’
GO
GRANT EXECUTE ON CreateTempTables TO webuser
GRANT EXECUTE ON DeleteExpiredSessions TO webuser
GRANT EXECUTE ON DropTempTables TO webuser
GRANT EXECUTE ON ResetData TO webuser
GRANT EXECUTE ON TempGetAppID TO webuser
GRANT EXECUTE ON TempGetStateItem TO webuser
GRANT EXECUTE ON TempGetStateItemExclusive TO webuser
GRANT EXECUTE ON TempInsertStateItemLong TO webuser
GRANT EXECUTE ON TempInsertStateItemShort TO webuser
GRANT EXECUTE ON TempReleaseStateItemExclusive TO webuser
GRANT EXECUTE ON TempRemoveStateItem TO webuser
GRANT EXECUTE ON TempResetTimeout TO webuser
GRANT EXECUTE ON TempUpdateStateItemLong TO webuser
GRANT EXECUTE ON TempUpdateStateItemLongNullShort TO webuser
GRANT EXECUTE ON TempUpdateStateItemShort TO webuser
GRANT EXECUTE ON TempUpdateStateItemShortNullLong TO webuser
GO
USE tempdb
GO
GRANT SELECT, INSERT, UPDATE, DELETE ON ASPStateTempApplications TO guest
GRANT SELECT, INSERT, UPDATE, DELETE ON ASPStateTempSessions TO guest
GO
4. Crear un .BAT con el siguitenete codigo
5. Ejecutar el archivo BAT