|
|
|
|
|
|
| Author |
Message |
bravegag *nix forums beginner
Joined: 12 Apr 2006
Posts: 16
|
Posted: Fri Jun 23, 2006 1:12 pm Post subject:
how to query for table stats?
|
|
|
Hi all,
How to query Sybase for existence of stats on a table?
e.g. I have table A and I would like to know:
- whether it has stats computed.
- the date when they were computed.
Many thanks in advance,
Best Regards,
Giovanni |
|
| Back to top |
|
 |
Carl Kayser *nix forums beginner
Joined: 25 May 2005
Posts: 42
|
Posted: Fri Jun 23, 2006 1:47 pm Post subject:
Re: how to query for table stats?
|
|
|
"bravegag" <bravegag@gmail.com> wrote in message
news:1151068340.185363.217640@r2g2000cwb.googlegroups.com...
| Quote: | Hi all,
How to query Sybase for existence of stats on a table?
e.g. I have table A and I would like to know:
- whether it has stats computed.
- the date when they were computed.
Many thanks in advance,
Best Regards,
Giovanni
|
The info is stored in sysstatistics. In particular, moddate is (obviously)
the date of the statistics. Which statistics is not trivial since there
could index statistics, column statistics, partition statistics (and I might
have missed others). Use object_name (id) to determine the table name.
A useful article on Optimizer Mythology & Folklore, which covers statistics
issues, by Eric Miner is at ISUG, but this article is only
members-available. |
|
| Back to top |
|
 |
bravegag *nix forums beginner
Joined: 12 Apr 2006
Posts: 16
|
Posted: Fri Jun 23, 2006 2:31 pm Post subject:
Re: how to query for table stats?
|
|
|
Carl Kayser wrote:
| Quote: | The info is stored in sysstatistics. In particular, moddate is (obviously)
the date of the statistics. Which statistics is not trivial since there
could index statistics, column statistics, partition statistics (and I might
have missed others). Use object_name (id) to determine the table name.
A useful article on Optimizer Mythology & Folklore, which covers statistics
issues, by Eric Miner is at ISUG, but this article is only
members-available.
Thanks!!! you just saved my tomorrow saturday  |
Best regards,
Giovanni |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Tue Dec 02, 2008 2:56 pm | All times are GMT
|
|
Xbox Mod Chip | Loan | Cadillac | Myspace Layouts | Remortgages
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|