I wrote a stored procedure in 'test' database.This procedure will create temp table to tempdb.
I found when SQL service restart. It lost my user in tempdb and procedure has no permission to access in.
I need to add user again in tempdb: security-> user.
User Setting:
Database-Level Roles : public & db_owner
Fixed-Database Roles : db_owner
When service restart I want my user setting keep it. Is anything can to that?