Results 1 to 5 of 5

Thread: [02/03] BACKUP & RESTORE SQLSERVER 2000 DATABASE

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    2

    Arrow [02/03] BACKUP & RESTORE SQLSERVER 2000 DATABASE

    Hi All,
    I'm doing a Management Project by VB.Net. It require me create a Form that is used to Backup and Restore Sql Databse. I don't know how to do this. But when I surfed web to find document. I saw a interesting tutorial, but it is written in C#.Net Language. Please help me a form resembles with that tutorial. I'm using VB.net 2003. Thanks so much

    http://www.geekpedia.com/tutorial180...databases.html

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [02/03] BACKUP & RESTORE SQLSERVER 2000 DATABASE

    Welcome to the Forums.

    You really shouldnt be doing backups/restores of a sql db via a program other then Enterprize Manager as there are too many issues that can occur causing data loss which EM can handle best.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [02/03] BACKUP & RESTORE SQLSERVER 2000 DATABASE

    There are links to code converters in my signature.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    2

    Re: [02/03] BACKUP & RESTORE SQLSERVER 2000 DATABASE

    Yeah. But it is a requirement in my project, so I must do it. please help me a form resemble that tutorial. I really need it to complete my project as soon as possible

  5. #5
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: [02/03] BACKUP & RESTORE SQLSERVER 2000 DATABASE

    This link discussed a STORED PROCEDURE concept for backing up a DB...

    http://www.vbforums.com/showthread.p...t=backup+funds

    Search the forum for "BACKUP FUNDS" and you will get many threads dealing with BACKUP T-SQL statements...

    btw - backing up a DB in a SPROC is no big deal - just keep in mind that the disk-path for the backup file is "local-to-the-server" and not to the "client-machine". You should not backup to a network drive or URL - the database engine really wants to backup to a local device.

    Also - and more important - if you are going to RESTORE the DB you cannot be connected to that DB - when I do a restore from EM or QA I usually select the MASTER DB as the connection database - which has obvious security issues if done from a client program. Also when you do your restore are you expecting the DB to actually be "deleted" from the server at that moment?

    BACKUP is normally done through scheduled jobs running under the agent. On-demand restore is a lot less common and seems like a questionable (or curious to say the least) requirement.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width