The One SQL Tool That Might Save Your Job
What happens when you load up Query Analyzer, generate a database script based off an existing database, then run that script to create an identical database? Theoretically, it creates the new database, right? Well... some times, query analyzer decides to put “USE“ statements inside the script, which means that instead of creating the new database, you will drop all the tables in the old database and then recreate them... which, of course, means that all your data will instantly dissappear (doesn't matter if it is $10 of data, or $10 million dollars of data, it will be gone). Now, assuming that your backups are all running (and are in working order), and your transaction logs contain all the information you need (which won't be the case if you are using image or text fields and haven't set explicitly told SQL to save that info), you might be able to undo the damage. But, you know what they say about assumptions...
So, if your assumption turns out to be incorrect, go get a copy of Lumigent's SQL Log Explorer. Not only is it a niftly little tool, but if you catch your error quickly and make a copy of the DB before too much new data is inserted, it can also magically restore data from dropped tables (no backups required).