restore

Is there a SQL script that I can use to determine the progress of a SQL Server backup or restore process?

岁酱吖の 提交于 2019-11-26 23:49:58
问题 When I backup or restore a database using MS SQL Server Management Studio, I get a visual indication of how far the process has progressed, and thus how much longer I still need to wait for it to finish. If I kick off the backup or restore with a script, is there a way to monitor the progress, or do I just sit back and wait for it to finish (hoping that nothing has gone wrong?) Edited: My need is specifically to be able to monitor the backup or restore progress completely separate from the

Speeding up mysql dumps and imports [closed]

寵の児 提交于 2019-11-26 23:43:17
Are there any documented techniques for speeding up mySQL dumps and imports? This would include my.cnf settings, using ramdisks, etc. Looking only for documented techniques, preferably with benchmarks showing potential speed-up. http://www.maatkit.org/ has a mk-parallel-dump and mk-parallel-restore If you’ve been wishing for multi-threaded mysqldump, wish no more. This tool dumps MySQL tables in parallel. It is a much smarter mysqldump that can either act as a wrapper for mysqldump (with sensible default behavior) or as a wrapper around SELECT INTO OUTFILE. It is designed for high-performance

Restore a postgres backup file using the command line?

拥有回忆 提交于 2019-11-26 21:08:05
I'm new to postgresql, and locally, I use pgadmin3. On the remote server, however, I have no such luxury. I've already created the backup of the database and copied it over, but, is there a way to restore a backup from the command line? I only see things related to GUI or to pg_dumps, so, if someone can tell me how to go about this, that'd be terrific! Steven Schlansker There are two tools to look at, depending on how you created the dump file. Your first source of reference should be the man page pg_dump(1) as that is what creates the dump itself. It says: Dumps can be output in script or

How do I backup and restore the system clipboard in C#?

巧了我就是萌 提交于 2019-11-26 19:09:05
I will do my best to explain in detail what I'm trying to achieve. I'm using C# with IntPtr window handles to perform a CTRL-C copy operation on an external application from my own C# application. I had to do this because there was no way of accessing the text directly using GET_TEXT. I'm then using the text content of that copy within my application. The problem here is that I have now overwritten the clipboard. What I would like to be able to do is: Backup the original contents of the clipboard which could have been set by any application other than my own. Then perform the copy and store

“No backupset selected to be restored” SQL Server 2012

牧云@^-^@ 提交于 2019-11-26 18:54:03
问题 I have a SQL Server 2012 database with filestream enabled. However, when I backup it and try to restore it on another SQL Server 2012 instance (on another machine), I simply get this message that: No backupset selected to be restored. Not even a single line of more explanation. What's wrong here? Every other database without filestream is OK and can be restored successfully. Is it something related to filestream? Should I install a hotfix or something like that. 回答1: I had this problem and it

What is the correct way to restore a deleted file from SVN?

家住魔仙堡 提交于 2019-11-26 18:47:59
问题 I deleted a file from a repo and now want to put it back. The best I can figure out is to: update to the revision before the delete copy the files elsewhere update to head copy the files back add them commit That just smells bad and it looses all history to boot. There has got to be a better way to do this. I have already looked in The SVN Book but didn't find anything and am now looking down the SVN tag list. 回答1: Use svn merge: svn merge -c -[rev num that deleted the file] http://<path to

How to take backup of a single table in a MySQL database?

こ雲淡風輕ζ 提交于 2019-11-26 17:59:45
By default, mysqldump takes the backup of an entire database. I need to backup a single table in MySQL. Is it possible? How do I restore it? Ozair Kafray Dump and restore a single table from .sql Dump mysqldump db_name table_name > table_name.sql Dumping from a remote database mysqldump -u <db_username> -h <db_host> -p db_name table_name > table_name.sql For further reference: http://www.abbeyworkshop.com/howto/lamp/MySQL_Export_Backup/index.html Restore mysql -u <user_name> -p db_name mysql> source <full_path>/table_name.sql or in one line mysql -u username -p db_name < /path/to/table_name

How do you backup and restore a database as a copy on the same server?

江枫思渺然 提交于 2019-11-26 16:14:20
问题 I have a SQL2005 Express database that I would like to create a copy of on the same instance. How do you go about doing this with a script? I already have a script for generating the backup, but the restore is failing... THE ERROR: Msg 3234, Level 16, State 2, Line 2 Logical file 'MyDB_data' is not part of database 'MyDB_Test'. Use RESTORE FILELISTONLY to list the logical file names. Msg 3013, Level 16, State 1, Line 2 RESTORE DATABASE is terminating abnormally. THE RESOLUTION: RESTORE

is it possible backup and RESTORE a database file in android? non root devices [duplicate]

蓝咒 提交于 2019-11-26 15:33:51
问题 This question already has answers here : Backup and restore SQLite database to sdcard (3 answers) Closed 5 years ago . in my app I need get a backup of my database, but after I'll need restore it again, i have read somethings, but i do not sure if this is necessary to have a rooted device, i need backup/restore the all data in non root devices, is it possible? my first idea was creating a txt file for write the select, and later insert it again. but i believe this is much "problem" then i don

When exactly are onSaveInstanceState() and onRestoreInstanceState() called?

纵然是瞬间 提交于 2019-11-26 12:52:56
问题 The following figure (from the official doc) describes the well-known lifecycle of an Android activity: On the other hand, when the activity is destroyed by the system (for example because memory needs to be reclaimed), the state of the activity is sometimes automatically saved and restored by means of the methods onSaveInstanceState() and onRestoreInstanceState() , as illustrated by the following figure (also from the official doc): I\'m aware that onSaveInstanceState() is not always called