Will empty exif presets overwrite existing exif data (like captions) with blanks

I want to import from existing files and keep whatever exif data is already there (like captions), while during the import (or after) I want to apply ADDITIONAL exif data (like author, location). If I leave the existing fields empty in the metadata presets, will the original exif data be safe? In other words, can i just append metadata without affecting the original values?
DJ

In the Edit Metadata Preset dialog (where you would name and save a metadata preset FROM), there are checkboxes down the right side, next to each metadata field.
Any field without a checkbox next to it, will be left alone when the preset is applied to future images, regardless whether there is something typed into the preset or not, and regardless whether that field on the image starts out empty or not.
This is the same idea, as with Develop presets: the preset has a defined scope. It only affects the aspects that you say it should.
Typing something new into an empty box, does automatically put a check next to that.  So that will get applied to the image.
Editing out what is in a box, still leaves that field checked. Alternatively, you can put a check next to an empty box: same result. As a warning, that field's name turns red and the box shows a prompt telling you that if applied to an image, this empty field will still be imposed onto the image - deleting whatever might have been there before.
In order to prevent this happening, assuming you didn't positively want that field cleared, you would need to un-check the box next to that field (and then if editing a previously saved preset, update that to incorporate the change).

Similar Messages

  • Just bought a used MacBook pro after my previous died. I want to migrate my applications, data, etc from a time machine backup of the old computer to the new. Will this affect, or overwrite the Apps., data, etc existing on the new machine?

    Just bought a used MacBook pro after my previous died. I want to migrate my applications, data, etc from a time machine backup of the old computer to the new. Will this affect, or overwrite the Apps., data, etc existing on the new machine?

    No. Only those Apps that are not installed on the new will migrate over.

  • TS2570 Mac will not start up after software up date, just screen with Apple logo and spinning icon?

    Mac will not start up after software up date, just screen with Apple logo and spinning icon? I have tried safe start up, unplugged all other cables, no luck?

    How to Perform an Archive and Install
    An Archive and Install will NOT erase your hard drive, but you must have sufficient free space for a second OS X installation which could be from 3-9 GBs depending upon the version of OS X and selected installation options. The free space requirement is over and above normal free space requirements which should be at least 6-10 GBs. Read all the linked references carefully before proceeding.
    1. Be sure to use Disk Utility first to repair the disk before performing the Archive and Install.
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Do not proceed with an Archive and Install if DU reports errors it cannot fix. In that case use Disk Warrior and/or TechTool Pro to repair the hard drive. If neither can repair the drive, then you will have to erase the drive and reinstall from scratch.
    3. Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When you reach the screen to select a destination drive click once on the destination drive then click on the Option button. Select the Archive and Install option. You have an option to preserve users and network preferences. Only select this option if you are sure you have no corrupted files in your user accounts. Otherwise leave this option unchecked. Click on the OK button and continue with the OS X Installation.
    4. Upon completion of the Archive and Install you will have a Previous System Folder in the root directory. You should retain the PSF until you are sure you do not need to manually transfer any items from the PSF to your newly installed system.
    5. After moving any items you want to keep from the PSF you should delete it. You can back it up if you prefer, but you must delete it from the hard drive.
    6. You can now download a Combo Updater directly from Apple's download site to update your new system to the desired version as well as install any security or other updates. You can also do this using Software Update.

  • CLFMAS Idoc Type - Overwriting Existing Classification Data

    When i create a CLFMAS02 IDOC to update certain characteristics for an article tied to a class, all the characteristics data in the class goes to blank even if I am not sending that characteristic in the IDOC.
    Has anyone successfully used a CLFMAS idoc to update certain characteristics of a class while not blanking out other characteristics of that class ?

    Hi,
    You can use the customer exit 'EXIT_SAPLCLFM_002' for this requirement.
    This customer exit is triggered before saving the Class / Char data for a material in the database during CLFMAS processing.
    Sample code:
    DATA: wl_allkssk LIKE LINE OF t_allkssk,
    wl_allausp LIKE LINE OF t_allausp.
    IF i_appl = space.
    CLEAR: t_delcl, t_delob.
    LOOP AT t_allkssk INTO wl_allkssk WHERE vbkz = 'D'.
    CLEAR wl_allkssk-vbkz.
    MODIFY t_allkssk FROM wl_allkssk INDEX sy-tabix TRANSPORTING vbkz .
    ENDLOOP.
    LOOP AT t_allausp INTO wl_allausp WHERE statu = 'L'.
    CLEAR wl_allausp-statu.
    MODIFY t_allausp FROM wl_allausp INDEX sy-tabix TRANSPORTING statu.
    ENDLOOP.
    e_active = 'X'.
    ENDIF.
    Hope this would solve your problem
    Regards,
    Bhawit

  • Unicode and non-unicode string data types Issue with 2008 SSIS Package

    Hi All,
    I am converting a 2005 SSIS Package to 2008. I have a task which has SQL Server as the source and Oracle as the destination. I copy the data from a SQL server view with a field nvarchar(10) to a field of a oracle table varchar(10). The package executes fine
    on my local when i use the data transformation task to convert to DT_STR. But when I deploy the dtsx file on the server and try to run from an SQL Job Agent it gives me the unicode and non-unicode string data types error for the field. I have checked the registry
    settings and its the same in my local and the server. Tried both the data conversion task and Derived Column task but with no luck. Pls suggest me what changes are required in my package to run it from the SQL Agent Job.
    Thanks.

    What is Unicode and non Unicode data formats
    Unicode : 
    A Unicode character takes more bytes to store the data in the database. As we all know, many global industries wants to increase their business worldwide and grow at the same time, they would want to widen their business by providing
    services to the customers worldwide by supporting different languages like Chinese, Japanese, Korean and Arabic. Many websites these days are supporting international languages to do their business and to attract more and more customers and that makes life
    easier for both the parties.
    To store the customer data into the database the database must support a mechanism to store the international characters, storing these characters is not easy, and many database vendors have to revised their strategies and come
    up with new mechanisms to support or to store these international characters in the database. Some of the big vendors like Oracle, Microsoft, IBM and other database vendors started providing the international character support so that the data can be stored
    and retrieved accordingly to avoid any hiccups while doing business with the international customers.
    The difference in storing character data between Unicode and non-Unicode depends on whether non-Unicode data is stored by using double-byte character sets. All non-East Asian languages and the Thai language store non-Unicode characters
    in single bytes. Therefore, storing these languages as Unicode uses two times the space that is used specifying a non-Unicode code page. On the other hand, the non-Unicode code pages of many other Asian languages specify character storage in double-byte character
    sets (DBCS). Therefore, for these languages, there is almost no difference in storage between non-Unicode and Unicode.
    Encoding Formats: 
    Some of the common encoding formats for Unicode are UCS-2, UTF-8, UTF-16, UTF-32 have been made available by database vendors to their customers. For SQL Server 7.0 and higher versions Microsoft uses the encoding format UCS-2 to store the UTF-8 data. Under
    this mechanism, all Unicode characters are stored by using 2 bytes.
    Unicode data can be encoded in many different ways. UCS-2 and UTF-8 are two common ways to store bit patterns that represent Unicode characters. Microsoft Windows NT, SQL Server, Java, COM, and the SQL Server ODBC driver and OLEDB
    provider all internally represent Unicode data as UCS-2.
    The options for using SQL Server 7.0 or SQL Server 2000 as a backend server for an application that sends and receives Unicode data that is encoded as UTF-8 include:
    For example, if your business is using a website supporting ASP pages, then this is what happens:
    If your application uses Active Server Pages (ASP) and you are using Internet Information Server (IIS) 5.0 and Microsoft Windows 2000, you can add "<% Session.Codepage=65001 %>" to your server-side ASP script.
    This instructs IIS to convert all dynamically generated strings (example: Response.Write) from UCS-2 to UTF-8 automatically before sending them to the client.
    If you do not want to enable sessions, you can alternatively use the server-side directive "<%@ CodePage=65001 %>".
    Any UTF-8 data sent from the client to the server via GET or POST is also converted to UCS-2 automatically. The Session.Codepage property is the recommended method to handle UTF-8 data within a web application. This Codepage
    setting is not available on IIS 4.0 and Windows NT 4.0.
    Sorting and other operations :
    The effect of Unicode data on performance is complicated by a variety of factors that include the following:
    1. The difference between Unicode sorting rules and non-Unicode sorting rules 
    2. The difference between sorting double-byte and single-byte characters 
    3. Code page conversion between client and server
    Performing operations like >, <, ORDER BY are resource intensive and will be difficult to get correct results if the codepage conversion between client and server is not available.
    Sorting lots of Unicode data can be slower than non-Unicode data, because the data is stored in double bytes. On the other hand, sorting Asian characters in Unicode is faster than sorting Asian DBCS data in a specific code page,
    because DBCS data is actually a mixture of single-byte and double-byte widths, while Unicode characters are fixed-width.
    Non-Unicode :
    Non Unicode is exactly opposite to Unicode. Using non Unicode it is easy to store languages like ‘English’ but not other Asian languages that need more bits to store correctly otherwise truncation will occur.
    Now, let’s see some of the advantages of not storing the data in Unicode format:
    1. It takes less space to store the data in the database hence we will save lot of hard disk space. 
    2. Moving of database files from one server to other takes less time. 
    3. Backup and restore of the database makes huge impact and it is good for DBA’s that it takes less time
    Non-Unicode vs. Unicode Data Types: Comparison Chart
    The primary difference between unicode and non-Unicode data types is the ability of Unicode to easily handle the storage of foreign language characters which also requires more storage space.
    Non-Unicode
    Unicode
    (char, varchar, text)
    (nchar, nvarchar, ntext)
    Stores data in fixed or variable length
    Same as non-Unicode
    char: data is padded with blanks to fill the field size. For example, if a char(10) field contains 5 characters the system will pad it with 5 blanks
    nchar: same as char
    varchar: stores actual value and does not pad with blanks
    nvarchar: same as varchar
    requires 1 byte of storage
    requires 2 bytes of storage
    char and varchar: can store up to 8000 characters
    nchar and nvarchar: can store up to 4000 characters
    Best suited for US English: "One problem with data types that use 1 byte to encode each character is that the data type can only represent 256 different characters. This forces multiple
    encoding specifications (or code pages) for different alphabets such as European alphabets, which are relatively small. It is also impossible to handle systems such as the Japanese Kanji or Korean Hangul alphabets that have thousands of characters."<sup>1</sup>
    Best suited for systems that need to support at least one foreign language: "The Unicode specification defines a single encoding scheme for most characters widely used in businesses around the world.
    All computers consistently translate the bit patterns in Unicode data into characters using the single Unicode specification. This ensures that the same bit pattern is always converted to the same character on all computers. Data can be freely transferred
    from one database or computer to another without concern that the receiving system will translate the bit patterns into characters incorrectly.
    https://irfansworld.wordpress.com/2011/01/25/what-is-unicode-and-non-unicode-data-formats/
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • Any way to change/replace EXIF data like the original date of photo?

    I'm importing into Lightroom several thousand photos I took with my first digital camera, back in 2000-2004. It's all gone very smoothly. But here's my problem:
    In my old workflow, photos I spent time editing wound up as TIF files, and whatever program I used to edit them stripped out the EXIF information from them. As a result, for example, a photo which was actually taken on March 4, 2001 will have EXIF information showing it was taken on March 10, 2001, the date on which I edited it and made the TIF. All of the other EXIF data is stripped as well, the exposure data, lens information, ISO, whether the flash fired, etc. The TIF file basically seems to have no EXIF data other than the file size and my name.
    I can live without the other info, really, but the changing of the information about the original date/time means that the TIF file doesn't sort next to the original file in Lightroom, which I'd like it to do. There's not thousands of photos for which I have TIFs, just a few hundred at most.
    Is there any way, with a plug-in or some external program, to copy the EXIF information from the original program and insert it into the TIF file?

    I'd suggest just using ExifTool.
    The command is:
         exiftool -tagsFromFile {SRCFILE} {DESTFILE}
    So, if you have a tif sans exif named my.tif, and an original jpg with exif named my.jpg, it would be:
         exiftool -tagsFromFile my.jpg my.tif
    There may be a batch-y way to do this with exiftool, or you could make your own batch file to do this in bulk...
    Main link: http://www.sno.phy.queensu.ca/~phil/exiftool/
    Examples: http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#copying_examples
    PS - To sync changes from files into catalog, use 'Read Metadata from File' function on Library Metadata menu.
    Rob

  • If i already have a data carrier setting in my iphone 4, and i want a upgrade for the setting via itunes, will it write over my existing settings?

    If i already have a data carrier setting in my iphone 4, and i want a upgrade for the setting via itunes, will it write over my existing settings?

    You can set up more than one device on your computer, and iTunes will remember the settings for each of them:
    How to use multiple iPods, iPads, or iPhones with one computer
    But you'll have to use your Apple ID to sync bought media to her device. Disable all other things you don't want to sync like photos, contacts, etc.

  • Will installing Snow Leopard erase existing data already on my computer

    My Software is at 10.5.8 and I'm about to install Snow Leopard (pretty behind on the updates).  My question is:  Will installing this erase my existing data on my computer?  I have a lot of .ai files and such I need for my business that I have to keep.  I have an external hard drive that I just backed up on using time machine but I'm not 100% trustworthy of that.

    How to Install Snow Leopard Successfully
    A. Repair the Hard Drive and Permissions:
    Boot from your OS X Installer DVD. After the installer loads select your language and click on the Continue button. Then select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally. 
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger) and/or TechTool Pro (4.5.2 for Tiger) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    B. Make a Bootable Backup Using Restore Option of Disk Utility:
      1. Open Disk Utility from the Utilities folder.
      2. Select the destination volume from the left side list.
      3. Click on the Restore tab in the DU main window.
      4. Check the box labeled Erase destination.
      5. Select the destination volume from the left side list and drag it to the
          Destination entry field.
      6. Select the source volume from the left side list and drag it to the
          Source entry field.
      7. Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal
    startup drive.
    C. Important: Please read before installing:
      1. If you have a FireWire hard drive connected, disconnect it before installing the update unless you will boot from this drive and install the update on it. Reconnect it and turn it back on after installation is complete and you've restarted.
      2. You may experience unexpected results if you have installed third-party system software modifications, or if you have modified the operating system through other means. (This does not apply to normal application software installation.)
      3. The installation process should not be interrupted. If a power outage or other interruption occurs during installation, use the standalone installer (see below) from Apple Downloads to update.  While the installation is in progress do not use the computer.
    D. To upgrade:
    Purchase the Snow Leopard Retail DVD.
    Boot From The OS X Installer Disc:
          1. Insert OS X Installer Disc into the optical drive.
          2. Restart the computer.
          3. Immediately after the chime press and hold down the "C" key.
          4. Release the key when the spinning gear below the dark gray Apple
              logo appears.
          5. Wait for installer to finish loading.
    E. Update to 10.6.8:
      1. Download and install update:  Mac OS X 10.6.8 Update Combo v1.1

  • Procedure to Overwrite Existing Reports in Salesforce

    I've been looking around and can't seem to find the proper procedure for overwriting existing reports in Salesforce. While we are on that topic, what is the procedure for uploading new reports? What needs to be checked, filled out, clicked?
    Whenever I try to overwrite a report, it says there was a database connection error. I have to delete the report and re-upload it.

    To add a bit more to what Steve wrote:
    While we are on that topic, what is the procedure for uploading new reports?
    It depends on the report and it's data source. If you are using an onpremise data source, you would need to have implemented the Open Data Connector on site and then you can set your reports to point to that web service. The other option there is for reports from Excel files that exist in crystalreports.com. There is another forum post on that topic. For Salesforce.com reports, I cover that below.
    What needs to be checked, filled out, clicked?
    For Salesforce.com, you typically don't need to check anything related to the data source. crystalreports.com will automatically know about the data source. When a user runs the report, it will automatically use their Salesforce.com security token to run the report.
    If you want, you are able to "hard-code" the user credentials for the report. To do that, you can check the "Other data source" radio button and then input your user name/password. The password is encrypted and masked. In this case, you want to very careful as to which users have access to that report. Some customers use this to give some access to Salesforce.com data in a report that users might not have access to within Salesforce.com itself.
    Do make sure that you do not upload a report with saved data unless you intend users to see that "snapshot" of data. Otherwise, the report does not refresh by default.
    Whenever I try to overwrite a report, it says there was a database connection error. I have to delete the report and re-upload it.
    I thought I remember seeing something before happening with a report that I was trying to overwrite. It was not consistent so I was not sure if it was just something wrong with my report. What I did to resolve it was to overwrite the report with some .rpt file that did not use a Salesforce.com data source. Then I overwrote it again with the intended Salesforce.com data source report. I believe that reset the connection properly.

  • 11.1.2.1 - Overwrite Existing Values - Not Working

    Hi,
    Client has ASO Essbase application. They have duplicate rows of data apparently. I have the 'Overwrite existing values' box checked on the 'Data Load Settings'. I also select the 'Overwrite Existing Values' selection in the 'Data Load' window. Not sure why this is even there as it seems new or is a ASO specific functionality or something. Anyways, I created a simple file with two duplicate rows. When I load it using the rule, it doubles everything up. Then I load just a single row file with same rule and it successfully overwrites the values and loads properly.
    Is there a know issue with duplicate rows within the same file that causes it to double the values during the load? Or am I fundamentally missing something on how to correctly 'Overwrite Existing Values'?

    Found below out there in the documentation but trying to decipher it. If I understand the 'Buffer' will combine like rows withing a datasource automatically? But I can't figure out if that's in different source files only or within the same file?'
    Rules File Differences for Aggregate Storage Data Loads
    Rules file specifications for loading values to aggregate storage databases reflect the aggregate
    storage data load process.
    For block storage data loads, through the rules file, you choose for each data source whether to
    overwrite existing values, add values in the data source to existing values, or subtract them from
    existing values.
    For aggregate storage data loads using the aggregate storage data load buffer, you make this
    choice for all data load sources that are gathered into the data load buffer before they are loaded to the database.
    To use a rules file that was defined for a block storage outline with an aggregate storage outline, first associate the rules file with the aggregate storage outline. See “Associating an Outline with an Editor” in the Oracle Essbase Administration Services Online Help.
    For aggregate storage databases only:
    •     If you are loading data and values exist in the database, select an option from the Data load values drop-down list for overwriting existing values, adding to existing values, subtracting from existing values, or replacing the contents of the database.
    •     Select whether to ignore missing values and zero values in the data source.
    •     Select whether to load the data as a new slice in the database.

  • Can't Overwrite Existing Files with Same Name - Likely a Mail Error?

    Couldn't find this on the forum... Hope I can explain this properly.
    When I design something and send a proof I will send a PDF through mail. When the revises come in I used to be able to just overwrite the existing files on my desktop and re-send through mail. But now programs won't let me overwrite files with the same name anymore. Basically the program says "overwrite existing file?" but then say "file is in use. Can't overwrite."
    Back in Leopard this used to happen when I would have a mail draft open that used the data of the file I sent or was about to send. I would just have to save the mail message as a draft and the file was "no longer in use" so I could proceed as usual. But now it does this all the time regardless.
    Did this make sense? It's kind of hard to explain... But basically now when I want to send a revised file (and this can happen dozen of times in a day) I have to trash the existing file I want to overwrite. Or rename the file, which is confusing for me and my clients.
    Any thoughts?

    I have the same situation as you - sending out pdfs of designed pages and wanting to overwrite them continually. It used to happen on an older version of Mail, then it disappeared and now it's back with the latest version.
    It's more than annoying, it's downright driving me nuts. In the last hour I had to quit Mail seven times.
    Please send a fix for this Apple.

  • Overwrite existing files?

    I'm happily back to iTunes 7.7.1. I followed the directions for creating a backup disk. Apple's instructions for 'restoring from a backup disc' don't mention the 'extra' dialogue that comes up; EG 'Overwrite existing files?'
    By overwriting, does that keep one from getting a bunch of dupe songs? What happens if one doesn't overwrite? Are 'files' the same as 'songs'?
    Thx in advance!

    Hi,
    I think that you're confusing the iTunes application with the iTunes Folder.
    The iTunes Application resides in your Application folder and if you removed iTunes and installed an earlier version, then your iTunes Folder which lives in Home/Music will have remained untouched. This folder contains all your music, applications and the database that iTunes uses containing all your playlist and other information.
    If you did remove every trace of iTunes, then you should have been presented with an empty iTunes window when you re-installed the earlier version, and you should not be getting a message about "overwriting files" because there aren't any files to overwrite.
    If you only replaced the iTunes application, and when you opened iTunes 7.7.1 all your music files were present, then you don't need to re-install from your backup discs because they're already in your library.
    Regards

  • Over write the existing master data with new master data.

    hi friends,
    we have 2 sources for master data text like source A and source B to load the master data text and as per requirement we have to stop load from source A. But if you check the master data target still the old records are existed (from Source A), if i try to delete those records as you know it is not allowing...and more over if we want to delet the mastr data we have delete the transaction data.
    In Mycase i don't want to delet the Transaction data and i need to over write the existing master data i.e Request A with Rquest B.
    Is there any solution for this issue.
    Thanks in advance,
    Sruthi.

    For overwriting the text from source B you have to have transformations from source B to your text datasource of your characteristic. Then you map the text coming from source B to the text for the characteristic.
    If it comes form source B the key for that characteristic with text, it will overwrite the text existed for that characteristic to the same key.
    For example you have 0employee and have a text datasource in source A which has employee_id and employee_name. In the Bw you have mapped in your transfer rules the employee_id to the employee_id and the employee_name to the employee_name. So for example you have extracted from source A the record:
    employee_id   employee_name
    0001               xpto
    If you have a same datasource of text coming from source B, if you do the same mapping in transfer rules in BW coming from source B, and you bring for example the record:
    employee_id   employee_name
    0001               zzzz
    You'll overwrite the old value of xpto to the new value zzzz
    Diogo.

  • EXPDP overwrite existing

    Hello everyone.
    I would like to ask if there is a way for expdp to overwrite existing dmp files in data pump dir?
    Best regards
    Marcin Migdal

    Hi!
    Look here:
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_export.htm#sthref96]
    You can not overwrite a dumpfile but maybe using substitution variables will also solve your problem.
    yours sincerely
    Florian W.

  • HOW RESTORE WITHOUT OVERWRITE EXISTING DATABASE ???????

    I create a test database named TESTONE
    USE MASTER
    GO
    if DB_ID('testone') IS NOT null
    drop database TESTONE
    GO
    CREATE DATABASE TESTONE
    GO
    and change recovery model to simple
    alter database TESTONE set recovery simple
    GO
    so I create a sample table
    use TESTONE
    GO
    create table table1(
    id int identity primary key,
    descr varchar(10)
    go
    I take a full backup of that database
    USE master
    GO
    BACKUP DATABASE TESTONE
    TO DISK=N'c:\TEMP\testone.bak'
    WITH NOFORMAT, INIT, NAME = N'TESTONE', SKIP, NOREWIND, NOUNLOAD, STATS = 10
    GO
    after that i do something bad :-)
    USE TESTONE
    GO
    drop table table1
    go
    USE master
    GO
    USE [master]
    RESTORE DATABASE [TESTONE] FROM DISK = N'C:\TEMP\testone.bak' WITH RECOVERY, FILE = 1, NOUNLOAD, STATS = 5
    GO
    the restore command doesn't contains  WITH REPLACE clause and ....
    if you expand the tables tree you'll find your deleted table
    the database has been overwritten
    Why?

    That is the default behavior or RESTORE. Since you are restoring the same DB (not a different DB) and the DB is in simple recovery mode, it will overwrite the existing DB. See https://msdn.microsoft.com/en-us/library/ms186858.aspx.
    Here is an excerpt from this link:
    REPLACE Option Impact
    REPLACE should be used rarely and only after careful consideration. Restore normally prevents accidentally overwriting a database with a different database. If the database specified in a RESTORE statement already exists on the current server and the specified
    database family GUID differs from the database family GUID recorded in the backup set, the database is not restored. This is an important safeguard.
    The REPLACE option overrides several important safety checks that restore normally performs. The overridden checks are as follows:
    Restoring over an existing database with a backup taken of another database.
    With the REPLACE option, restore allows you to overwrite an existing database with whatever database is in the backup set, even if the specified database name differs from the database name recorded in the backup set. This can result in accidentally overwriting
    a database by a different database.
    Restoring over a database using the full or bulk-logged recovery model where a tail-log backup has not been taken and the STOPAT option is not used.
    With the REPLACE option, you can lose committed work, because the log written most recently has not been backed up.
    Overwriting existing files.
    For example, a mistake could allow overwriting files of the wrong type, such as .xls files, or that are being used by another database that is not online. Arbitrary data loss is possible if existing files are overwritten, although the restored database is complete.
    Satish Kartan www.sqlfood.com

Maybe you are looking for

  • How can I assign an icon to a folder using Powershell?

    How can I assign an icon to a folder using Powershell?

  • BDC for XK01

    Hi All, iam creating & updating Vendor master details through BDC  Recording  by following syntax       DATA :lt_bdcmsgcoll1 TYPE STANDARD TABLE OF bdcmsgcoll.       DATA opt TYPE ctu_params.       opt-dismode = 'N'.       opt-updmode = 'X'.       op

  • Forté Icon in the Window Title Bar.

    Hi, I would like to know if it is possible to change the Forté little Icon in all windows of our application for our company logo. Example: <<...OLE_Obj...>> <<Forte.zip>> Thank. Allen Vachon INFLUATEC Inc. Programmer Analyst (819)/(888) 595-1794 ava

  • AAA Accounting Commands

    I have just started logging AAA accounting commands on my ACS. I am able to view all commands entered without any trouble. I would like to NOT see commands entered from one particular source. I have an IDS device that shuns to a router. The shunning

  • Doubt on Search help exit F.M

    Hi all, I have created one Search help with 4 fields. In search help F.M, can i code the validations say, 1) Field 1 should not be blank 2) Either  Field 1 should be entered or one of the remaining fields should be entered by user.