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 Namespace and Assembly?

579


What languages does the .net framework support?

543


Explain the difference between datatable and dataset?

556


What is the difference between system.applicationexception class and system.systemexception?

680


source code for how to login a vb.net application ?

595






What are the difference between structure and class?

560


what is common type system?

525


What is the differences between dataset.clone and dataset.copy?

638


Explain the differences between vb.net and c#, related to oops concepts?

520


Compare c# and visual basic.net?

551


What do you mean by serialization and deserialization and it's use.

603


described weak typing?

587


Is vb net a scripting language?

543


Write the role of new keyword?

611


How a base class method is hidden?

613