General Questions (FireDAC)

From RAD Studio
Jump to: navigation, search

Go Up to FAQ (FireDAC)

This topic contains a list of general questions and answers.

Q1: Is there a 'Getting Started Guide' (or 'Quick Start Guide') for FireDAC?

A: See First Steps to Use FireDAC.

Q2: What is the difference between mobile and full versions?

A: FireDAC Mobile version:

  • does not include the library source code files;
  • only iOSSimulator and iOSDevice binaries are included.

Q3: Is the FireDAC thread safe?

A: Yes, it is. Read Multithreading for more details.

Q4: How can I handle the exceptions?

A: Read Handling Errors for details. And also the code sample:

uses
  FireDAC.Phys.IBWrapper;

  try
    ...Login to Database...
  except
    { Login not correct }
    on E: Exception do
    begin
      if (E is EIBNativeException) and
         (EIBNativeException(E).Errors[0].ErrorCode = 335544472)
      then
        ShowMessage(strUserUnkown)  // your Errormessage
      else
        ShowMessage(E.Message);
    end;
  end;

Q5: I use Delphi 2009 with Firebird 2 with character set unicode_fss. I don't understand why FireDAC generates TWideStringField in Delphi 2009

A: In Delphi 2009:

  • TStringField is 1 byte ANSI (SBCS) string field;
  • TWideStringField is multi-byte Unicode string field.

So, that is the correct behavior. Also read Unicode Support for details.