I am developing a windows form application in c# visual studio 2010, where I want to create a feature in which a user is allowed to restore and backup the database by itself. The problem is that I am using a standalone mdf file.
i am using sql server express by attaching mdf file to the application, when i try to backup using query it's work but when i try restore the database using query it say that it's say that doesn't have permission to alter table. And then i try to using smo but it say that unable to open the file. So i am wondering if there is any option