S
S
Sergey Bezuglov2014-03-12 10:58:41
C++ / C#
Sergey Bezuglov, 2014-03-12 10:58:41

How to backup a SQLExpress database to a file that can be run/executed by a C# program?

Backup a SQLExpress database to a file launched/executed by a C# program

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Bezuglov, 2014-03-13
@besuglovs

Here is what I was really looking for.
Technet.microsoft.com How to: Create a Full Database Backup (Transact-SQL)

A
Alexey, 2014-03-12
@HaJIuBauKa

1. Come up with an extension, for example .bmsql (you can use any)
2. Register it in the WIndows OS extension registry and assign your application to run, for example, when installing (publishing) it.
3. Process the parameter (file name) in your application, start the restore procedure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question