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 |
Can we use trigger new in before insert?
Explain the phases a transaction has to undergo?
What is a document index?
how will add additional conditions in sql?
0 Answers Amdocs, Apps Associates,
Wht is the difference between stored procedure and trigger
What do you mean by an execution plan?
Suppose you want to implement the one-to-one relationships while designing tables. How would you do it?
How to include text values in sql statements?
What are trace files?
What is join query?
What will be the maximum number of index per table?
can a database be shrunk to 0 bytes, if not, why? : Sql server administration
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)