How to back up SQL database in VB.NET?

I want to provide an interface via VB.NET to allow the user to back up the SQL Server database.

How can I do this please? SQL Server may be any version from 2000+. Am using VB.NET 2008

If there are other users of the database, can I find their user names, so that I can tell the user to ask them to log off first?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dirk HaestProject managerCommented:
SQL Server Database Backup Utility using VB.NET and SQL-DMO (New version)

Simple Backup/Restore Utility With SQL-DMO Using VB.NET
Create a stored procedure on SQL Server side and then run the stored procedure on VB.NET side in your code
logicalcAuthor Commented:
YZlat's idea looks interesting, as I am seeking something very simple.

Do you have an example please?
Dirk HaestProject managerCommented:
Backup databases stored procedure

Automating Database maintenance in SQL 2005 Express Edition Part I


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
logicalcAuthor Commented:
Many thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.