stu6008


I am looking for a way to programatically determine the size of the data contained in a table, much like the sp_spaceused proc in SQL Server.

Thanks.




Re: sp_spaceused equivalent in CE?

ErikEJ


sp_spaceused is not available in SQL Compact. You may find this useful: http://support.microsoft.com/kb/827968/en-us







Re: sp_spaceused equivalent in CE?

stu6008

Thanks for the info. I am also considering using something like Sum(Len(MyNvarcharField)) to get a closer approximation of the variable length data (of which there are several). I don't really have a good percentage to estimate actual data vs. column max length. Expensive, but needs to run only a couple times a day to monitor size.