Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you persist objects, permissions in tempdb



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

Post New Answer

More SQL Server Interview Questions

What is compound operators?

0 Answers  


What is impersonation? What are the different impersonation options available in ssas? : sql server analysis services, ssas

0 Answers  


What is sql server query analyzer?

0 Answers  


What happens if strings are casted into wrong code pages in ms sql server?

0 Answers  


What do you understand by recursive stored procedure?

0 Answers  


What is read committed?

0 Answers  


how to define testing of network layers? : Sql server database administration

0 Answers  


How to loop through result set objects using mssql_fetch_array()?

0 Answers  


How to list all user names in a database?

0 Answers  


What is a select query statement in ms sql server?

0 Answers  


Explain different isolation levels?

4 Answers  


What is implicit mode in sql server?

0 Answers  


Categories