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

How can we store decimal data in .net?

625


Name the two main parts of .net?

605


Describe about visual basic.net?

636


Write a program that would find the nth term of a geometric progression, given the value of first term and common ratio. Any inbuilt function that the language provides for calculating exponent should not be used.

3194


Explain redim keyword?

644






What do you mean by serialization?

608


Define clr?

614


What is difference between metadata and manifest?

650


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

573


what is commom language runtime?

625


Explain about visual basic?

644


What is enumerator?

644


Why do we use byref keyword in vb.net?

695


Explain i.tostring method?

595


Tell us how many languages are supported by .net?

593