I am trying to restore SQL server DB, replacing the existing one but donot know how to do it. My purpose is to restore the backup file selected by user, no matter if file with this name is already attached to the server or not. If it is there, it should be replaced by the new one.
Could any body give me vb.net code for it?
Thanks
Plz give me teh codezquestions.