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
Explain cdc and sql injection?
What are the recovery models for a database?
How does clustered and non clustered index work?
How to connect to SQL Azure Database by using sqlcmd?
What is the purpose of data source?
How you can move data or databases between servers and databases in sql server?
What is a database table?
Why normalization is used?
Define union, union all, minus, intersect?
What is a primary key?
How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.
What is the meaning of lock escalation and why/how to stop this? : sql server database administration
What is a periodical index?
Is sql server free?
What does it mean if @@cursor_row returns a negative number?