CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - DateTime
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Oracle
SQL Server
MySQL
Other Databases
Search - DateTime - List
[
SQL Server
]
Function_DATA_SQL
DL : 0
Function in SQL to simplify working with DateTime.
Date
: 2025-12-30
Size
: 6kb
User
:
Pimenta186
[
SQL Server
]
MySQL_Backup_Restore
DL : 0
Easy Backup and Restore MySQL utility.-Introduction It is the basic, easy to use MySQL Backup/Restore utility. Background It is basically developed for non programmers. So, anyone can use it. The simplest tool for the job. Using the code Backup method takes two arguments, i.e, path to save the backup file and connection string. Hide Copy Code // Backup MySql private void MySQLBackup(string path, string constring) { string file path+ txt_database.Text+ _ + DateTime.Now.ToString( yyyy-MM-dd_hh-mm-ss )+ .sql using (MySqlConnection conn new MySqlConnection(constring)) { using (MySqlCommand cmd new MySqlCommand()) { using (MySqlBackup mb new MySqlBackup(cmd)) { cmd.Connection conn conn.Open() mb.ExportToFile(file) conn.Close() } } } } Now to the restore method with the same two arguments Hide Copy Code // Restore MySQL(.sql) file to the private void
Date
: 2025-12-30
Size
: 256kb
User
:
xps1530
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.