Answer Posted / 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 |
Post New Answer View All Answers
What are subquery and its properties?
What is view in sql?
What are the results of running this script?
Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.
What do you mean by cardinality?
Explain mixed authentication mode of sql server?
What is clustered primary key?
What is a virtual table in sql?
What do you understand by triggers and mention the different types of it?
Explain the cursor lock types?
What is an execution plan? When would you use it?
What is linked report?
Define self join?
Which feature in sql server 2008 has surprised you? You can name just one. : sql server database administration
What are key, name and value columns of an attribute? : sql server analysis services, ssas