Hi,
as in the subject, I tried to search some text using "Find text on server", but the queries are built using "concat" that is not recognized by MS-SQL.
You shoud use '+' instead, I think.
I'm not a fun of MSSQL, but have to use it for a customer building a business intelligence system and that features is invaluable for this kind of work: "where damn the ccounting software stores that datum?"
Many thanks for your hard work!
Find text on server not working with MS-SQL
Hi,
I've just downloaded 8.3 version but sedly this function is still broken for MSSQL.
As I can see the problem is just for the statment:
as "concat" isn't accepted by MSSQL.
I'm working on a database (not mine!) with hundred of tables and finding the right place for information is makeing me crazy!
Please, put an hand on your heart and help me!
Regards
pierpa
I've just downloaded 8.3 version but sedly this function is still broken for MSSQL.
As I can see the problem is just for the statment:
CONCAT(ROUND(100 / 1 * COUNT(*), 1), '%') AS "Relevance"
as "concat" isn't accepted by MSSQL.
I'm working on a database (not mine!) with hundred of tables and finding the right place for information is makeing me crazy!
Please, put an hand on your heart and help me!
Regards
pierpa
Code modification/commit
a9708fd
from ansgar.becker,
11 years ago,
revision 8.3.0.4743
Support "Find text on server" dialog on MSSQL. See http://www.heidisql.com/forum.php?t=14950
Hi,
many thanks for your effort!
Indeed it works!
There are just a couple of minor problems left:
- the "lower" function doesn't work whith "text" field type so the query returns a syntax error. As in MSSql text matching is case insensitive by default, I beleave the function may be left over without problems.
- if I flag the "Case senitive" search HeidiSql uses the "like binary" operator that, again, doesn't exists in MSSQL. I really don't care about that, but should you will to fix this problem maybe you can rewrite the query
as
Thanks again.
many thanks for your effort!
Indeed it works!
There are just a couple of minor problems left:
- the "lower" function doesn't work whith "text" field type so the query returns a syntax error. As in MSSql text matching is case insensitive by default, I beleave the function may be left over without problems.
- if I flag the "Case senitive" search HeidiSql uses the "like binary" operator that, again, doesn't exists in MSSQL. I really don't care about that, but should you will to fix this problem maybe you can rewrite the query
WHERE "CodCondizPagEsolver" LIKE BINARY '%causale%'
as
WHERE "CodCondizPagEsolver" LIKE '%causale%' COLLATE SQL_Latin1_General_CP1_CS_AS
Thanks again.
Code modification/commit
435b555
from ansgar.becker,
11 years ago,
revision 8.3.0.4744
Make search on server more compatible to MSSQL: Remove LOWER() call, which fails on TEXT fields and is not even required. And add an equivalent to MySQL's BINARY search. See http://www.heidisql.com/forum.php?t=14950
Perfect, all the queries are accepted now.
Just a little problem with the "case sensitive" search: even if I write the search string in uppercase, in the query the text is always lowercase... so the search is useless with uppercase text.
Anyway this isn't a problem at all for me and I'm very grateful for your help.
Just a little problem with the "case sensitive" search: even if I write the search string in uppercase, in the query the text is always lowercase... so the search is useless with uppercase text.
Anyway this isn't a problem at all for me and I'm very grateful for your help.
Please login to leave a reply, or register at first.