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
Do you know concepts and capabilities of sql server?
What is the difference between push and pull subscription? : sql server replication
Write an sql query to find first weekday of the month?
How except clause is differs from not in clause?
What are the components of sql server service broker?
What is the syntax to execute the sys.dm_db_missing_index_details?
what is blocking? : Sql server database administration
What is data mart? : sql server analysis services, ssas
Explain filestream storage of sql server 2008?
sql database suspect We have a sql database that is showing as suspect. How can we recover?
What are parameterized reports?
What is difference between createstatement and preparedstatement?
List the data types available in mssql?
Can you tell me about the concept of ER diagrams?
How to connect sql server management studio express to sql server 2005 express?