How do you persist objects, permissions in tempdb
Answer / srinivasa ganamur
Hi,
Step 1 : For this you to create new procedure(plcae all
your statments in this procedure), affter creating the
procedure, run this procedure in tempdb.
Step 2 : using sp_procoption (system procedure), you have
to set startup option.means whenever you restart your sql
server the created procedure automatically runs. The Syntax
of sp_procoption is
sp_procoption @proc_name,
@OptionName,
@OptionValue
@ProcName---> Name of the newly created procedure
@OptionName---> StartUP
@OptionValue---> True
Ex: sp_Procoption 'usp_CustomerDetails', 'StartUp', 'True'
Regard's
Srinivasa Ganamur
Is This Answer Correct ? | 3 Yes | 0 No |
How to create an index on an existing table in ms sql server?
how to define testing of network layers? : Sql server database administration
What are the dis_advantages of stored procedures, triggers, indexes?
What are the different types of triggers in SQL SERVER?
What is a result set object returned by mssql_query()?
What is advantage data architect?
What is buffer cash and log cache in sql server?
Is it safe to delete log files?
What is Replication?
difference between function and procedure
3 Answers Cognizant, HCL, TCS, Theorem,
What is sql stored procedure?
What is open database communication (odbc)?