Connecting to databases via SSH Tunneling is something developers and IT professionals often need to do. And HeidiSQL is one of the more popular open-source database tools. While HeidiSQL fully supports SSH tunneling, there doesn’t seem to be any documentation about how to accomplish this. So, after struggling with this for a few hours and figuring it out, I put these instructions together to help others.
The designers of SQL for some reason did not require a keyword (like “ALL”) to protect SQL statements from accidental updates or deletes. Especially when the UPDATE or DELETE statement doesn’t contain a WHERE clause. I wonder if this was deliberate or if it was an oversight. In any case, the programmer becomes “all-powerful”. The significance of this problem will be better appreciated with an example…
SQL Server 2008 allows for the creation of local backups. However, these backups must really be “local” in the sense that they can only be created on the machine where the SQL Server instance is installed. The whole idea behind database backups is about keeping a copy of data in case of Server failure or some other problem. So storing the backed up data on the same machine is definitely not a good idea.