I want to change table name dynmaicaly so I write the sql statement in OracleDataSet like this :
OracledataSet1.Sql.Text := 'SELECT * FROM %S'
At run time, I use the following command to change the sql statement.
OracleDateSet1.Sql.Text := Format(OracleDataSet1.Sql.Text,['TheTableName'])
But when I Open the DataSet , there are error message 'ORA-1460 unimplemented or unreasonable convention requested'.
But it only happen in then first time running this sql statement. When I try to run it again(the program without reset) it is ok and work find.
Can anyone have this experience...
Thanks
OracledataSet1.Sql.Text := 'SELECT * FROM %S'
At run time, I use the following command to change the sql statement.
OracleDateSet1.Sql.Text := Format(OracleDataSet1.Sql.Text,['TheTableName'])
But when I Open the DataSet , there are error message 'ORA-1460 unimplemented or unreasonable convention requested'.
But it only happen in then first time running this sql statement. When I try to run it again(the program without reset) it is ok and work find.
Can anyone have this experience...
Thanks