how to restore database using vb.net?

Answer Posted / abhijit r. mandavgane

imports microsoft.win32

dim svr as new SQLDMO.SQLServer

svr.executeImmediate("RESTORE DATABASE<DATABASE NAME> FROM
DISK =<DATABASE PATH NAME> WITH REPLACE")

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between compiler and interpreter?

741


What is static member?

755


What is the role of new keyword?

802


Described strong typing and weak typing?

833


What do you mean by serialization?

729


Explain the difference between datatable and dataset?

805


Explain the services provided by common language infrastructure.

921


what's ArrayList in .Net (VB.Net or C#).What's the advantageous using ArrayList.

786


Which classes a dll can contain?

722


Define naming convention?

789


Describe about visual basic.net?

734


How does vb.net achieve polymorphism?

715


What is a preprocessor directive in vb.net?

732


how to get dynamic control array position or its index position?

2230


Explain how to send xml file on server using http protocol?

675