Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi Firedac - Case Sensitive issue

I am trying to migrate my application from ADO to FireDAC. I am using Microsoft SQL Server. My database server was installed with collation SENSITIVE CASE and the database was created with collation INSENSITIVE CASE. I did this configuration because my custumers has this configuration. But when I tried to migrate to FireDAC, the FireDAC driver (MSSQL) look the database collation and change the property "database name" to upper case. After that, many things didnt work, because the FireDAC didn't find the "database name" in sysdatabase. Can I turn off this function that change the "database name" property?

like image 884
MarceloSouza Avatar asked Jul 25 '14 16:07

MarceloSouza


1 Answers

I guess you're looking for the MetaCaseInsCat connection parameter. Try to disable catalog names case sensitivity autodetection and set it up to be case insensitive:

...
FDConnection1.Params.Add('MetaCaseInsCat=True');
FDConnection1.Connected := True;
like image 56
Victoria Avatar answered Sep 21 '22 18:09

Victoria