Getting valid DataType's for params

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
chkaufmann
Posts: 82
Joined: Sat 01 Jul 2006 11:42

Getting valid DataType's for params

Post by chkaufmann » Wed 19 May 2010 13:20

Hi,

I have a TUniQuery with parameters (:PID, :PDATA). After I set the connection and the SQL.Text, is there a way to know, what DataType values will be valid, depending on the database behind the connection?

Or is it possible to get these details if I know, that it is a certain database, e.g. MS SQL Server?


Example:

"select * from DATATABLE where ID = :PID"

Here I would like to know, what DataType I should use for the parameter.

cu Christian

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 20 May 2010 07:35

You can set the DescribeParams specific option of TUniQuery to get parameter types. But this functionality works only for InterBase server, and we will support it for MSSQL Server in the next UniDAC build.

Post Reply