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 stored by the model? : sql server database administration
What is SQL Server?
What are filegroups in sql server?
How to change server name in sql server?
What are entities and relationships?
What is mapping schema?
Explain ms sql server reporting services vs crystal reports?
What is nonclustered index with included columns ?
How do you migrate data from mssql server to azure?
What are the difference between primary keys and foreign keys?
What is the difference between substr and charindex in the sql server?
Define Business Edition in SQL Azure?
Explain primary key and foreign key constraints?
what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
What is an indice?