Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Projecting table size
Message
From
22/05/2006 07:50:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
22/05/2006 07:46:09
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01123890
Message ID:
01123900
Views:
20
>>a) Even if that table has 0 records in it now you can calculate "how many records will fit in X bytes". Roughly calculation is:
>>
>>lnTargetBytes = 2*1024*1024*1024
>>? int((m.lntargetbytes-HEADER())/RECSIZE())
>>
>>If table has no memo/general/BLOB type fields thjis would give you your limits.
>
>That's great, thanks.
>
>>b) You can keep an eye on reccount() then or directly on file size itself.
>>
>>PS: Such a case sounds to be a great candidate for SQL server (or some other backend).
>
>It's a standalone app and I favour the lightweight DBFs for stuff like that so I don't want to have to install local instances of SQL Server.
>
>Kev

Yes I can understand the ease working with DBFs and 'standalone' should be simplier:) However don't forget they always tend to grow up quickly:)
Even if you start with DBFs design it in a way that switching to a backend would be simple.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform