Click here to Skip to main content
15,358,946 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I create a vb net project which backup an sql database as bak file with different name do. How can I restore it and keep the backuped name? Any links will be helpfull.

Thank you

What I have tried:

I found simple code but for mdf file types.
Updated 6-Jan-22 19:57pm

1 solution

It probably depend on exactly what your VB project does: my version (in C#) is here: Backing up an SQL Database in C#[^] and it also explains some of the pitfalls involved in a restoration.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900