| View previous topic :: View next topic |
| Author |
Message |
Adriano Guest
|
Posted: Mon Sep 11, 2006 7:05 pm Post subject: Name of the Table through the TClientDataSet ? |
|
|
Hi,
BDS 2006, SQL Server 2005 and DBexpress connection.
I'm using TSQLConnection, TSQLDataSet, TDataSetProvider, TClientDataSet and
a TDataSource to access the datas.
Is it possible to know the name of the table through the TClientDataSet ?
CommandText of TSQLDataSet
select * from "CadRede"
I'd like to get the original Table Name from SQLServer.
Ex.: myTableName := myClientDataSet.TableName;
Thanks |
|
| Back to top |
|
 |
Bill Todd Guest
|
Posted: Mon Sep 11, 2006 10:48 pm Post subject: Re: Name of the Table through the TClientDataSet ? |
|
|
What would you expect if the the CommandText property of the SQLDataSet
was:
SELECT * FROM CUSTOMER C JOIN ORDERS O
ON O.CUSTNUM = C.CUSTNUM
JOIN ORDERDETAIL D
ON D.ORDERNUM = O.ORDERNUM
That is why there is no property that will return the table name.
--
Bill Todd (TeamB) |
|
| Back to top |
|
 |
Adriano Guest
|
Posted: Mon Sep 11, 2006 11:27 pm Post subject: Re: Name of the Table through the TClientDataSet ? |
|
|
Ok. I understood !!!
Thanks
Adriano
"Bill Todd" <no (AT) no (DOT) com> escreveu na mensagem
news:4505a157$1 (AT) newsgroups (DOT) borland.com...
| Quote: | What would you expect if the the CommandText property of the SQLDataSet
was:
SELECT * FROM CUSTOMER C JOIN ORDERS O
ON O.CUSTNUM = C.CUSTNUM
JOIN ORDERDETAIL D
ON D.ORDERNUM = O.ORDERNUM
That is why there is no property that will return the table name.
--
Bill Todd (TeamB) |
|
|
| Back to top |
|
 |
|