SELECT INTO tempdb..



I have tested a stored procedure that SELECT INTO tempdb..myAppTable in
development as an user who has dbo rights. Hence, the table can be
referenced as tempdb.dbo..myAppTable.

However, when the same stored procedure is run in production as a user
who has only guest role, the same table can only be referenced as
tempdb.guest.myAppTable.

Can the SELECT INTO be modified so the dbo has table ownership?

.



Relevant Pages