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 |
What is sql server query analyzer?
What are the differences between ms sql server & oracle?
How is a full-text index updated?
what purpose does OPENXML clause have in sql server stored procedure?
What are the difference between primary key and unique key? : sql server database administration
Explain the use of keyword with encryption. Create a store procedure with encryption?
What is recompile sql server?
what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration
What is database replication?
How will you hide an attribute? : sql server analysis services, ssas
Explain steps of normalization?
How to create a view with data from multiple tables?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)