T.R | Title | User | Personal Name | Date | Lines |
---|
32.1 | | 45080::CWINPENNY | | Fri May 16 1997 14:14 | 14 |
|
In the BDE configuration utility click on the aliases tab and select
your alias. In the right hand window there will be an entry called
'Schema Cache Size' which according to the BDE help is described as
SCHEMA CACHE SIZE Number of SQL tables whose schema information will
be cached. Can be any whole number from 0 to 32.
Default: 8
Try increasing this parameter to allow for the number of tables you
expect to be using at any one time, 20 concurrent tables does seem to
be quite high.
Chris
|
32.2 | I increase, but no good news. | 21272::INFO_RIBERTO | | Fri May 16 1997 17:57 | 19 |
|
I tried increase that parameter and I did not have a good result,
the application failed again, I contacted the local Borland's support
and they told to me that the real problem is in the type of object that
I'm using. The object is Ttable to point to SQLServer table, and they
told to me that this kind of object is very heavy, cause there are a
lot of controls embbebed ( very easy to use and programming but not
good to use high ) and the solution proposed is change from ttable to
tquery object, well the problem is I don't have to much time to convert
my application, because I'll need add and change a lot of source-code.
In your point of view, is it true ? is it necessary to convert my
application or is there another way to use the ttable object but better
configured or with some adjust to make to preserv my source-code.
Thanks in advanced,
Riberto.
|
32.3 | | 45080::CWINPENNY | | Fri May 16 1997 19:19 | 8 |
|
The things like TTable, TdbListBox, Tdb... are there for people to
knock up quick applications for proving concepts and such but are not
really to be used in anger. What Borland say is quite right but once
you get started you'll probably find it easier to convert your code
than you first thought.
Chris
|
32.4 | Do or do not. There is not try ( Yoda ) | 21272::INFO_RIBERTO | | Mon May 19 1997 18:35 | 8 |
|
I get started the conversion process of my application and in my point
of view the major effort to do will be write the SQL commands for all
properties of Tquery object ( Insert, Update and Delete ).
Do you know if is possible omit this SQL texts to perform necessary
operations when use Tquery over a grid object.
Thanks again Chris ;-)
|
32.5 | | 45080::CWINPENNY | | Mon May 26 1997 18:10 | 18 |
|
For Tquery you need some SQL somewhere. If all you want to do is look
at tables in a grid object then the dirtiest way after Ttable is to
create a Tquery with the SQL 'select * from tbl order by tbl.field'.
Right click on the Tquery and enter the fields editor to choose the
fields you want on your grid. Stick on a datasource linked to the query
and a dbgrid linked to the datasource and off you go.
The documentation will give code examples for preparing and calling the
query.
If you are just dealing with one table, ie. not joined, then according
to the documentation it should be possible to update the table from the
dbgrid using the same query but I've never tried it. Doing things
manually, although making a mockery of the rapid development concept,
is by far the best method.
Chris
|
32.6 | A man, a plan, a canal panama. | 21272::INFO_RIBERTO | | Fri May 30 1997 20:49 | 18 |
|
I tried to use a SQL select statement in all cases, but when I used
with SQL Server did not function properly, I made a test with a
Interbase Database and the results was good !!. I need to put a
completed statements in SQL properties "Insert,Update,Delete" to
work fine.
Do you know if the SQL Server have a problem to use the Select
statement to "Insert", "Update" or "Delete" on Tquery object ?
By the way, do you know some tricks or trips to optimize the
performance when the Tquery object are opening ? Is there a good
parameter to set to "magic value" ?
Thanks again,
Riberto.
|