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

Explain about globalization?

492


What is the difference between convert.tostring and .tostring() method?

520


Can you please explain the difference between dataset and datareader?

549


What is the Advantage of vb.net over vb

563


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.

3108






How to store decimal data in .net?

633


hello thank you for replying to my question regarding adding barcode fonts in vb.net project. I have downloaded a free font and added in my vb.net project but now i dont know how to use that i need to generate barcodes can any body help me how to use those fonts these are font3of9 .i need a small code to use these fonts to generate barcode thank u!

1572


What is stack used for in vb. Net?

525


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

490


Explain cls?

587


What are option strict and option explicit?

788


Explain how to achieve polymorphism in vb.net?

543


Can you please explain the difference between dispose and finalize()?

498


Write a program to find all text files in a logical drive and return the count of the number of files?

2271


Explain the observations between vb.net and vc#.net?

524