How to back up SQL database in VB.NET?

Posted on 2008-11-20
Last Modified: 2012-05-05
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?
Question by:logicalc
    LVL 53

    Expert Comment

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

    Simple Backup/Restore Utility With SQL-DMO Using VB.NET
    LVL 35

    Expert Comment

    Create a stored procedure on SQL Server side and then run the stored procedure on VB.NET side in your code

    Author Comment

    YZlat's idea looks interesting, as I am seeking something very simple.

    Do you have an example please?
    LVL 53

    Accepted Solution

    Backup databases stored procedure

    Automating Database maintenance in SQL 2005 Express Edition Part I


    Author Closing Comment

    Many thanks

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
    JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
    Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
    Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now