SDAC Problem on Android

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
fayyaz
Posts: 2
Joined: Tue 06 Jan 2015 04:38

SDAC Problem on Android

Post by fayyaz » Tue 06 Jan 2015 05:04

Hi
I download SCAD Ver. 7.0.1 Trial and also try to Develop a simple application for android.
I Try to Connect SQL Server By TMSConnection Component and fetch 3 fields of a table by TMSQuery. it work Properly in windows but when I try to Deploy and run application on android device it raise "Only Direct Mode Supported".
Is it Because of Trial Version?

Thanks

azyk
Devart Team
Posts: 1057
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: SDAC Problem on Android

Post by azyk » Tue 06 Jan 2015 09:08

The "Only Direct mode is supported" error message you are getting is not a restriction of SDAC Trial Edition. The default value for the TMSConnection.Options.Provider connection property is prAuto. But for mobile applications, the Direct mode is required for TMSConnection. Therefore you are getting this message. To enable the Direct mode, before establishing connection to SQL Server, set the TMSConnection.Options.Provider property to prDirect . For example:

Code: Select all

MSConnection.Options.Provider := prDirect;

Note: to use the prDirect value, add the MSClasses unit to the uses section.

fayyaz
Posts: 2
Joined: Tue 06 Jan 2015 04:38

Re: SDAC Problem on Android

Post by fayyaz » Wed 07 Jan 2015 07:12

Thank you Very much for your guide

azyk
Devart Team
Posts: 1057
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: SDAC Problem on Android

Post by azyk » Thu 08 Jan 2015 10:38

Feel free to contact us if you have any further questions about SDAC.

Post Reply