We have several SQL Server 2008 R2 environments (dev, QA, Production) with databases for an ASP.NET application.
This applicaton uses ASP.NET membership and SQL Server session providers, thus we have an ASPState database.
The functionality of these providers were extended to restrict one active session per login. Our implementation added tables to TempDB, a stored proc ASPState.dbo.CreateTempTables to create these tables, and another stored proc Master.dbo.ASPState_Startup which calls the SP in ASPState.
On my dev machine and in production, when SQL Server is started Master.dbo.ASPState_Startup is executed and the tables are created.
I am setting up a new QA environment and cannot figure out how that happens (so in QA, the tables are not added to TempDB on startup). I have compared schema and permissions manually and via Red Gate’s compare tool and find no differences there.
I checked the jobs and none call either of these stored procs.
Any ideas of where the magic is hiding?
Thanks,
Scott
sp_procoptionis the “magic”: