Board index » delphi » Can't SQLClientDataSet support Date type data?

Can't SQLClientDataSet support Date type data?

I use a SQLClientDataSet control to connect a InterBase Database table which
have some Date type fields. When i set the SQLClientDataSet's active
property to 'true',i get a error message which say:
'unknown data type.  Client SQL dialect 1 does not support reference to DATE
datatype.'

Can't  SQLClientDataSet support Date type data?
Can i have another way to solve the proble?

 

Re:Can't SQLClientDataSet support Date type data?


Don't use TSQLClientDataSet. It is not recommended for use in an
application. Use
 TSQLDataSet/TSQLQuery -> TDataSetProvider -> TClientDataSet
instead.

Have a look in Google for more information on TSQLClientDataSet.

--
Dave Rowntree

Quote
"wen" <yh...@163.com> wrote in message news:3d2011e6_1@dnews...
> I use a SQLClientDataSet control to connect a InterBase Database table
which
> have some Date type fields. When i set the SQLClientDataSet's active
> property to 'true',i get a error message which say:
> 'unknown data type.  Client SQL dialect 1 does not support reference to
DATE
> datatype.'

> Can't  SQLClientDataSet support Date type data?
> Can i have another way to solve the proble?

Re:Can't SQLClientDataSet support Date type data?


As Dave said, do not use TSQLClientDataSet. Also, set the dialect in
the Params property of the SQLConnection to 3 to match the dialect of
your database.

Quote
On Mon, 1 Jul 2002 16:20:43 +0800, "wen" <yh...@163.com> wrote:
>I use a SQLClientDataSet control to connect a InterBase Database table which
>have some Date type fields. When i set the SQLClientDataSet's active
>property to 'true',i get a error message which say:
>'unknown data type.  Client SQL dialect 1 does not support reference to DATE
>datatype.'

>Can't  SQLClientDataSet support Date type data?
>Can i have another way to solve the proble?

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)

Re:Can't SQLClientDataSet support Date type data?


Thank Dave and Bill.
But i can not understand why all of you suggest me not use TSQLClientDataSet
since Borland have offered me the contrl? Would you like give me a
explanation?
Quote
"Bill Todd" <b...@notthis.dbginc.com> wrote in message

news:92k0iuskq314qtat199t2a0uj5k9pegpov@4ax.com...
Quote
> As Dave said, do not use TSQLClientDataSet. Also, set the dialect in
> the Params property of the SQLConnection to 3 to match the dialect of
> your database.

> On Mon, 1 Jul 2002 16:20:43 +0800, "wen" <yh...@163.com> wrote:

> >I use a SQLClientDataSet control to connect a InterBase Database table
which
> >have some Date type fields. When i set the SQLClientDataSet's active
> >property to 'true',i get a error message which say:
> >'unknown data type.  Client SQL dialect 1 does not support reference to
DATE
> >datatype.'

> >Can't  SQLClientDataSet support Date type data?
> >Can i have another way to solve the proble?

> --
> Bill (TeamB)
> (TeamB cannot respond to questions received via email)

Re:Can't SQLClientDataSet support Date type data?


Quote
> But i can not understand why all of you suggest me not use
TSQLClientDataSet
> since Borland have offered me the contrl? Would you like give me a
> explanation?

Not really :)

There are numerous problems. Take my advise and have a look in Google for
information. Do a search on 'SQLClientDataSet' here:
http://www.google.com/advanced_group_search?hl=en

--
Dave Rowntree

Re:Can't SQLClientDataSet support Date type data?


Many problems with SQLClientDataSet surfaced after D6 shipped and
Borland now recommends that it not be used. If you want examples do a
search on Google Groups.

Quote
On Mon, 1 Jul 2002 22:07:13 +0800, "wen" <yh...@163.com> wrote:
>Thank Dave and Bill.
>But i can not understand why all of you suggest me not use TSQLClientDataSet
>since Borland have offered me the contrl? Would you like give me a
>explanation?
>"Bill Todd" <b...@notthis.dbginc.com> wrote in message
>news:92k0iuskq314qtat199t2a0uj5k9pegpov@4ax.com...
>> As Dave said, do not use TSQLClientDataSet. Also, set the dialect in
>> the Params property of the SQLConnection to 3 to match the dialect of
>> your database.

>> On Mon, 1 Jul 2002 16:20:43 +0800, "wen" <yh...@163.com> wrote:

>> >I use a SQLClientDataSet control to connect a InterBase Database table
>which
>> >have some Date type fields. When i set the SQLClientDataSet's active
>> >property to 'true',i get a error message which say:
>> >'unknown data type.  Client SQL dialect 1 does not support reference to
>DATE
>> >datatype.'

>> >Can't  SQLClientDataSet support Date type data?
>> >Can i have another way to solve the proble?

>> --
>> Bill (TeamB)
>> (TeamB cannot respond to questions received via email)

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)

Other Threads