|
-
May 11th, 2006, 01:16 AM
#1
Thread Starter
New Member
[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
-
May 11th, 2006, 01:31 AM
#2
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
May 11th, 2006, 01:31 AM
#3
Re: [02/03] BACKUP & RESTORE SQLSERVER 2000 DATABASE
There are links to code converters in my signature.
-
May 11th, 2006, 01:37 AM
#4
Thread Starter
New Member
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
-
May 11th, 2006, 06:39 AM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|