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 the advantage of specifying WITH GRANT OPTION in the GRANT command?
What is sql server profiler?
What is an execution plan? When would you use it?
What do you understand by the data quality services in sql server?
Can a database be shrunk with users active?
if you encounter this kind of an error message, what you need to look into to solve this problem? : Sql server database administration
What are the types of normalization?
What is the New in SQL server 2008?
What is Peer to peer Replication?
1 Answers CarrizalSoft Technologies, HCL,
Does partitioning help performance?
Characterize join and name diverse sorts of joins?
What is the optimization being performed in oracle and SQL Server?
Oracle (3253)
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)