niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Sybase
SQL-Statement
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Detlef
*nix forums beginner


Joined: 11 Mar 2005
Posts: 5

PostPosted: Wed Apr 06, 2005 5:52 am    Post subject: Re: SQL-Statement Reply with quote

Hi Sara,

it works fine. Thanks

regards,
Detlef

"DBAGAL" <saradba@hotmail.com> wrote in message news:<1112716765.434455.58660@l41g2000cwc.googlegroups.com>...
Quote:
Heya Detlef,

Try this:

select object_name(id), rowcnt
from systabstats
where indid in (0,1)
order by rowcnt desc

You want to ensure you are running "update statistics" regularly and
even might want to run "sp_flushstats" prior to running the above
query.

Anyone with a better solution?

Cheers,

Sara ..

Detlef wrote:
Hi all,

I have a question about a Siebel Sybasedatabase.
I want to know which of the tables a user had created has the most
rows of all tables. The SQL-Statement have to spend all the
tablenames
and number of rows.

could anyone please help me?

many thanks for all.

regards,
deha
Back to top
DBAGAL
*nix forums beginner


Joined: 31 May 2005
Posts: 39

PostPosted: Tue Apr 05, 2005 1:59 pm    Post subject: Re: SQL-Statement Reply with quote

Heya Detlef,

Try this:

select object_name(id), rowcnt
from systabstats
where indid in (0,1)
order by rowcnt desc

You want to ensure you are running "update statistics" regularly and
even might want to run "sp_flushstats" prior to running the above
query.

Anyone with a better solution?

Cheers,

Sara ..

Detlef wrote:
Quote:
Hi all,

I have a question about a Siebel Sybasedatabase.
I want to know which of the tables a user had created has the most
rows of all tables. The SQL-Statement have to spend all the
tablenames
and number of rows.

could anyone please help me?

many thanks for all.

regards,
deha
Back to top
Detlef
*nix forums beginner


Joined: 11 Mar 2005
Posts: 5

PostPosted: Tue Apr 05, 2005 11:04 am    Post subject: SQL-Statement Reply with quote

Hi all,

I have a question about a Siebel Sybasedatabase.
I want to know which of the tables a user had created has the most
rows of all tables. The SQL-Statement have to spend all the tablenames
and number of rows.

could anyone please help me?

many thanks for all.

regards,
deha
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 5:03 am | All times are GMT
navigation Forum index » Databases » Sybase
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Select statement Shamna Sybase 0 Mon Sep 17, 2007 6:03 am
No new posts ECPG (usage of simple select statement) Jasbinder Bali PostgreSQL 0 Fri Jul 21, 2006 3:28 am
No new posts tremendous upturn on pink sheets, overwhelmingly importan... Larry Hurd devel 0 Mon Jul 17, 2006 4:50 pm
No new posts Help for a SQL Query statement: group by roberto IBM DB2 3 Mon Jul 17, 2006 12:43 pm
No new posts what's wrong with my code? about the #if statement. Python.LeoJay@gmail.com C 7 Mon Jul 17, 2006 8:14 am

Bad Credit Loan | Chitika | Debt Consolidation | Advertising | Promotional Web Design
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
[ Time: 0.1842s ][ Queries: 20 (0.1118s) ][ GZIP on - Debug on ]