Do not switch from "Query" to "Host" main tab when disconnecting. Hopefully does not break what I've done in r3868.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4198 560a3889-bb33-0410-9f33-43a8a102dc09
Enhance MS SQL compatibility in table editor:
* Introduce specifities for ADD/CHANGE column clauses. Fixes issue #2532.
* Remove unsupported DROP DEFAULT for MS SQL
* Remove unsupported LENGTH/SET attribute for relevant data types


git-svn-id: http://heidisql.googlecode.com/svn/trunk@4199 560a3889-bb33-0410-9f33-43a8a102dc09
Get away from using "2008", "2000" version numbers for MSSQL, to add compatibility to old MS SQL servers, e.g. 7.0 had no year-styled version. Instead, use 700 for 7.0, 800 for 2000, and so on. Use these more exact version numbers to fix a 7.0 issue in TAdoDBConnection.GetAllDatabases. See http://www.heidisql.com/forum.php?t=11230.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4200 560a3889-bb33-0410-9f33-43a8a102dc09
Fix crash on exit when connected to pre-4.1 servers. See http://www.heidisql.com/forum.php?t=11116

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4201 560a3889-bb33-0410-9f33-43a8a102dc09
Fix AV when displaying data of a table which has 0 rows. Mainly caused by range differences of VT.RootNodeCount (Cardinal) and TDBQuery.RecordCount (Int64).

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4202 560a3889-bb33-0410-9f33-43a8a102dc09
Text import: Uncheck critical "Truncate table" checkbox, to avoid accidental data removal. See http://www.heidisql.com/forum.php?t=11260

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4203 560a3889-bb33-0410-9f33-43a8a102dc09
AUTO_INCREMENT attribute requires a primary key on the same column. So, in the copy table dialog, if the user unchecks the primary key, we need to auto-remove the AUTO_INCREMENT attribute as well. Otherwise the dialog runs into an error "there can be only one auto column and it must be defined as a key". See http://www.heidisql.com/forum.php?t=11238

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4204 560a3889-bb33-0410-9f33-43a8a102dc09
Add support for renaming tables in MS SQL. Fixes issue #2981.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4205 560a3889-bb33-0410-9f33-43a8a102dc09
Remove LIMIT 1 clause for safe grid queries. This prevents grid updates on simple tables from running into replication mode warning "Statement is not safe to log in statement format". See http://www.heidisql.com/forum.php?t=11304

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4206 560a3889-bb33-0410-9f33-43a8a102dc09
Implement an automatic, non-configurable keep-alive ping, to prevent SSH tunnels from disconnecting. Fixes issue #2935.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4207 560a3889-bb33-0410-9f33-43a8a102dc09
Fix AV due to assigned but empty TConnectionParameters variable in TMainForm.WMCopyData. I know there is some complaint about this AV somewhere in the forum but I can't find it right now. Anyway, hereby fixed.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4208 560a3889-bb33-0410-9f33-43a8a102dc09
Make TDBQuery.HasFullData more reliable when a field has exactly GRIDMAXDATA(256) chars. See http://www.heidisql.com/forum.php?t=11346

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4209 560a3889-bb33-0410-9f33-43a8a102dc09
Autofit first '#' column in routine editor, which has not enough width in some cases. Fixes issue #2993.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4210 560a3889-bb33-0410-9f33-43a8a102dc09
Add fallback font family for HTML export. Fixes issue #2990.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4211 560a3889-bb33-0410-9f33-43a8a102dc09
Enable EXPLAIN links and menu items also when relevant query does not start with SELECT.., as there may be a comment at the beginning. This leaves the responsibility for error messages to the server. Fixes issue #2986.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4212 560a3889-bb33-0410-9f33-43a8a102dc09
Suppress clear text password in error dialog when plink.exe could not get executed, or exits with error. Fixes issue #2966.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4213 560a3889-bb33-0410-9f33-43a8a102dc09
Provide "All xy columns" in SQL completion proposal, expanding to the long list of all column names prefixed by the same left token. Fixes issue #2975.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4214 560a3889-bb33-0410-9f33-43a8a102dc09
Install Ararat Synapse library (r169 from trunk), as a preparation for HTTP tunnel implementation. See issue #1405.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4215 560a3889-bb33-0410-9f33-43a8a102dc09
Fix synapse usage:
* missing unit search path for synapse in auto-build script
* move unit search path from RELEASE to BASE
* make use of helpers:EncodeURLElementUnicode

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4216 560a3889-bb33-0410-9f33-43a8a102dc09
Add hints for portable mode and Win2000 support

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4217 560a3889-bb33-0410-9f33-43a8a102dc09