English 中文(简体)
SQL Anywhere table length
原标题:

how can I see the length of a table (in bytes) on SQL Anywhere? It s possible?

Thank you

最佳回答

To find the number of bytes taken up by the data in a table:

select db_property( pagesize )*(stab.table_page_count+stab.ext_page_count)
    from sys.systab stab join sys.sysuser suser on stab.creator=suser.user_id
    where stab.table_name= table_name  and suser.user_name= user_name 

This does not include the size of any indexes or triggers on the table.

问题回答

暂无回答




相关问题
Session Isolation Issue with local SQL Anywhere Database

I am migrating an existing set of applications from Win XP to Win 7. We have a 3rd party application which is launched by and runs in the user’s session which accesses a local SQL Anywhere 9 database ...

database encryption questions

We are using Sybase SQL Anywhere 11. We need to encrypt some of our tables in our database. I followed the instruction and did it. We selected the "strong" option with encryptionKey and AES256_FIPS ...

Sybase SQLAnywhere jConnect routines?

I have a database which is part of a closed system and the end-user of the system would like me to write some reports using the data contains in a Sybase SQL Anywhere Database. The system doesn t ...

SQL Anywhere 11, JZ0C0: Connection is already closed

I develop am webservice based on apache tomcat 6.0.26, apache cxf 2.2.7, spring 3.0, hibernate 3.3 and sybase sqlanywhere 11. im using the latest JDBC Driver from SYBASE jconn.jar Version 6. The ...

How recover sybase database (unknown db version)

I have a database file (*.db) that need to be recovered. The bad is, the end-user have null idea of the version of the database. Not know the password. The original developer is lost. The computer ...

Change SQL decimal delimiter

I am trying to import data into my table using INPUT INTO The problem is my decimals is using , as a delimiter, and it expects .. So it won t work! How can i change this? Search and replace in the ...

SyBase SQL anywhere check if Synchronization is needed?

I have a Sybase SQL Anywhere 11.0.1 database that I am using to sync with an Oracle Consolidated Database. I know that the SQL Anywhere database keeps track of all of the changes that are made to it ...

SQL Anywhere table length

how can I see the length of a table (in bytes) on SQL Anywhere? It s possible? Thank you

热门标签