Hello,
I have a client that has been going along great for the last 10 years. He is
now ready to explode.
We are pushing the 2 gig limit now on the client table and he wants to add
tons more.
What do you recommend to solve the table size limit problem ?
I know the answer is probably SQL server but I have never programmed to
access SQL.
I am guessing that this is going to be a huge job to covert the app from DBF
files
to SQL server.
Has anyone converted an app from DBF to SQL access ?
Do I have to convert all the tables from DBF to SQL or can I just convert
the client table
and maybe a few others like transactions and payments ?
I wish I had used business classes, it would have been much easier ...
Thanks,
Kent
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/249568A459914A2685C59FD558FC2E2F@KentLaptop
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Author: =?utf-8?B?Y2hhcmxpZWdjQHZlcml6b24ubmV0?=
Posted: 2010-07-15 22:09:19 Link
It sounds like one of your tables is getting too big. You could look at splitting the table on some field - like year if it has a year field. You would need to check your code and maybe write a method to determine which table to access when queried or updated.
I have a VFP database that is about 40 GB in size. It has a lot of split tables in it and it actually outperforms SQL Server.
-Charlie
Sent from my DROID!
----- Reply message -----
From: "Kent Belan" <kbelan@mchsi.com>
Date: Thu, Jul 15, 2010 8:40 pm
Subject: Large Data Tables
To: "'ProFox Email List'" <profox@leafe.com>
Hello,
I have a client that has been going along great for the last 10 years. He is
now ready to explode.
We are pushing the 2 gig limit now on the client table and he wants to add
tons more.
What do you recommend to solve the table size limit problem ?
I know the answer is probably SQL server but I have never programmed to
access SQL.
I am guessing that this is going to be a huge job to covert the app from DBF
files
to SQL server.
Has anyone converted an app from DBF to SQL access ?
Do I have to convert all the tables from DBF to SQL or can I just convert
the client table
and maybe a few others like transactions and payments ?
I wish I had used business classes, it would have been much easier ...
Thanks,
Kent
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/249568A459914A2685C59FD558FC2E2F@KentLaptop
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/0L5M000LLONJ4D50@vms173011.mailsrvcs.net
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On 7/15/10 6:40 PM, Kent Belan wrote:
> I have a client that has been going along great for the last 10 years. He is
> now ready to explode.
>
> We are pushing the 2 gig limit now on the client table and he wants to add
> tons more.
Well, that's good news. Work is good, right?
> What do you recommend to solve the table size limit problem ?
Upsizing to a server database. I'd recommend MySQL or Postgresql but I'm sure MS SQL
Server will work just fine, too.
> I know the answer is probably SQL server but I have never programmed to
> access SQL.
You haven't been seeing the writing on the wall for the past decade or so? ;)
> I am guessing that this is going to be a huge job to covert the app from DBF
> files
> to SQL server.
It depends. If you USE your data tables currently, it'll be a lot of work. On the
other hand, if you use views and/or mostly SQL, you are much of the way there already.
> Has anyone converted an app from DBF to SQL access ?
I've converted 3 Fox/VFP apps to use MySQL.
> Do I have to convert all the tables from DBF to SQL or can I just convert
> the client table
> and maybe a few others like transactions and payments ?
You can certainly go one-by-one on the table conversions. Actually, you'll want to
convert sets of related tables at once, so the server can do the joins.
> I wish I had used business classes, it would have been much easier ...
Is your data access logic sprinkled in the code pretty much everywhere?
The nice thing about remote views and/or SPT is that you end up with cursors you can
use just as if they were local Fox tables. So depending on your situation, it may not
be too daunting to set up new data access methods while leaving most of your code alone.
Paul
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4C3FCFC0.5090700@ulmcnett.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
You also may want to check out this -
http://www.sybase.com/products/databasemanagement/advantagedatabaseserver/gettingstarted-foxpro
rk
-----Original Message-----
From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com] On Behalf Of Kent Belan
Sent: Thursday, July 15, 2010 9:41 PM
To: profoxtech@leafe.com
Subject: Large Data Tables
Hello,
I have a client that has been going along great for the last 10 years. He is
now ready to explode.
We are pushing the 2 gig limit now on the client table and he wants to add
tons more.
What do you recommend to solve the table size limit problem ?
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD04406883D732B@ACKBWDDQH1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Kent Belan wrote:
> Hello,
> I have a client that has been going along great for the last 10 years. He is
> now ready to explode.
>
> We are pushing the 2 gig limit now on the client table and he wants to add
> tons more.
(Anticipating flames, I say this softly...)
A band-aid approach that may be expedient in your current circumstances:
Stay ancient and split the offending table. Many years ago, I had an
old-style Fox application (I created in FP [2?] and migrated to FP-Win,
then to VFP). It had one table approaching the 2G limit. Since it was
only one table, I elected to split it (vertically: fields 1-40 in table
A, field 1 [PK] and 41-x in another).
It didn't take too long to update the forms and reports. You might even
find it just as easy to upgrade some of the data access language to SQL
for SPT, or even build a data object for it. That may buy you time to
upgrade the application to modern standards without holding the client
back while you do.
(Flame away, PFers!)
Ken
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4C408DCE.8060406@information-architecture.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
We did the same. We had several old time clients who were over 1.5 gb in their transaction table. We split it putting
charges in one table and non-charges in another. We believe that will buy us another 5 years.
I checked out that link someone sent for the Advantage stuff. It looks good. I especially like the tools they have.
We have several thousand client installations all over the US. It will be impossible, at our current support rates, to
consider setting up a DSN on each computer manually. In fact, the installation and setup is the primary reason we have
not moved to SQL already. We would like to use Postgresql and have an automated way to set it up so that a current
client could install an update as usual and have it automatically migrate everything from dbf to sql. Our clients have
an unbelievable number of different hardware configurations. I dread to think about all the possible issues. The actual
VFP (or Python) programming is not the problem as I see it - it is that manual SQL administration stuff that is the
problem. Most of our clients are small offices and do not have very much IT expertise around. We need a royalty free way
to do it. Our clients are not going to pay a per-seat charge and we don't want to do the accounting. Also, we need to be
able to deliver a turn-key product so our users don't need to download anything or manually install anything or go
through a lot of complex procedures. Probably half of our clients do not have internet access. Many are still using a
modem connection to transmit their files to various payers.
----- Original Message -----
From: "Ken Kixmoeller f/h" <foxhelp@information-architecture.com>
To: "ProFox Email List" <profox@leafe.com>
Sent: Friday, July 16, 2010 9:50 AM
Subject: Re: Large Data Tables
Kent Belan wrote:
> Hello,
> I have a client that has been going along great for the last 10 years. He is
> now ready to explode.
>
> We are pushing the 2 gig limit now on the client table and he wants to add
> tons more.
(Anticipating flames, I say this softly...)
A band-aid approach that may be expedient in your current circumstances:
Stay ancient and split the offending table. Many years ago, I had an
old-style Fox application (I created in FP [2?] and migrated to FP-Win,
then to VFP). It had one table approaching the 2G limit. Since it was
only one table, I elected to split it (vertically: fields 1-40 in table
A, field 1 [PK] and 41-x in another).
It didn't take too long to update the forms and reports. You might even
find it just as easy to upgrade some of the data access language to SQL
for SPT, or even build a data object for it. That may buy you time to
upgrade the application to modern standards without holding the client
back while you do.
(Flame away, PFers!)
Ken
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/062d01cb250b$5ffff8f0$7a00a8c0@w2k3s02
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On Fri, Jul 16, 2010 at 12:21 PM, <kamcginnis@gmail.com> wrote:
> We did the same. We had several old time clients who were over 1.5 gb in their transaction table. We split it putting
> charges in one table and non-charges in another. We believe that will buy us another 5 years.
>
> I checked out that link someone sent for the Advantage stuff. It looks good. I especially like the tools they have.
>
> We have several thousand client installations all over the US. It will be impossible, at our current support rates, to
> consider setting up a DSN on each computer manually. In fact, the installation and setup is the primary reason we have
> not moved to SQL already. We would like to use Postgresql and have an automated way to set it up so that a current
> client could install an update as usual and have it automatically migrate everything from dbf to sql. Our clients have
> an unbelievable number of different hardware configurations. I dread to think about all the possible issues. The actual
> VFP (or Python) programming is not the problem as I see it - it is that manual SQL administration stuff that is the
> problem. Most of our clients are small offices and do not have very much IT expertise around. We need a royalty free way
> to do it. Our clients are not going to pay a per-seat charge and we don't want to do the accounting. Also, we need to be
> able to deliver a turn-key product so our users don't need to download anything or manually install anything or go
> through a lot of complex procedures. Probably half of our clients do not have internet access. Many are still using a
> modem connection to transmit their files to various payers.
-------------------------
Only way to keep in VFP data is to Normalize! If you normalized your
data could you save 5% data space or could it boost to savings to 20%?
Some systems that were designed a long time ago are horrendous at
data storage. From contacts lists to a customer or for carrying over
unneeded data from related tables < item description in SO and AR
transactions when the item's ID is all you need to get that back.
If that is too much of a nightmare to redesign and keep your data
still in Fox, you will have to find a new data container. Any DB you
choose will have pluses and minuses over a number of areas. I won't
try to persuade on what to do nor why, all up to you guys.
Point I am trying to make is that as you plan to port over to a new
DB, plan to not only copy over existing schema, but also implement the
modern design that is better for the db you choose to go to.
That manual DB admin stuff is pretty easy to do via scripting that you
can run from your app at any time. Backups and God forbid restores
are not tough at all. Schema changes are not nearly as easy but that
is what scripts are all about.
--
Stephen Russell
Sr. Production Systems Programmer
CIMSgts
901.246-0159 cell
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/AANLkTinPagQ56017KcYD7dyugdIP3Tso_59I_U10PKxL@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
> -----Original Message-----
> From: profoxtech-bounces@leafe.com
[mailto:profoxtech-bounces@leafe.com]
> On Behalf Of Kent Belan
> Sent: Thursday, July 15, 2010 6:41 PM
> To: profoxtech@leafe.com
> Subject: Large Data Tables
>
<snipped>
> We are pushing the 2 gig limit now on the client table and he wants to
add
> tons more.
So it's just this one table you have to worry about right now?
Stephen brings up a good point.... If the client wants to add a bunch
more records, and you aren't inclined to bite the bullet and convert to
another storage arrangement, then trimming columns in the table might
buy you some more time. Calculate max lengths in your text fields and
trim accordingly. Those bytes might really add up....
Thanks,
Matthew Jarvis || Business Systems Analyst
IT Department
McKenzie-Willamette Medical Center
1460 G Street, Springfield, OR 97477 || Ph: 541-744-6092 || Fax:
541-744-6145
--------------------------------------------------------------------------
Disclaimer: This electronic message may contain information that is
Proprietary, Confidential, or legally privileged or protected. It
is intended only for the use of the individual(s) and entity named
in the message. If you are not an intended recipient of this
message, please notify the sender immediately and delete the
material from your computer. Do not deliver, distribute or copy
this message and do not disclose its contents or take any action in
reliance on the information it contains.
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/69F310C05DD83C48A84BA3769CE1ECF8036F3010@TNTRIEXEVS02.triadhospitals.net
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
You don't need to manually configure a DSN entry on each client
machine to access a SQL Server backend. You simply need to get the
ODBC driver installed. This can be automated to kick in when a user
logs in to their network or worst case, you send out an email with a
link to the .exe and have them manually run the set up one time. I've
had the network guys do this for my clients and it works great.
Then, you simply have the application create the connection string
and use SQLSTRINGCONNECT(). I prefer this approach since I can also
easily change the server ( ie hit a test server vs. production server
) by changing some configuration options in my application directly.
Of course, installing the SQL backend is a manual process. To a
certain extent I think that can be automated too, but I've never
investigated if you can fully automate it with some kind of
predefined defaults or something, but perhaps?
Thus, if it's not possible to fully automate the SQL backend install
process, *and* you have tons of different customers to install it to,
I can see why moving to SQL would be a difficulty for your situation.
Alternatively you could consider hosting the SQL server at your own
company or by 3rd party remotely and have each client hit that one
server ( or partition into several if one would be overloaded ), and
simply have the application use different databases for each client
to insure data security.
This way, installation of the SQL backend is simple. The downside is
a bit slower data transfer than running on a LAN, and also overcoming
possible customer concerns of data not hosted outside their own building.
-Steve
At 01:21 PM 07/16/2010, kamcginnis@gmail.com wrote:
>We did the same. We had several old time clients who were over 1.5
>gb in their transaction table. We split it putting
>charges in one table and non-charges in another. We believe that
>will buy us another 5 years.
>
>I checked out that link someone sent for the Advantage stuff. It
>looks good. I especially like the tools they have.
>
>We have several thousand client installations all over the US. It
>will be impossible, at our current support rates, to
>consider setting up a DSN on each computer manually. In fact, the
>installation and setup is the primary reason we have
>not moved to SQL already. We would like to use Postgresql and have
>an automated way to set it up so that a current
>client could install an update as usual and have it automatically
>migrate everything from dbf to sql. Our clients have
>an unbelievable number of different hardware configurations. I dread
>to think about all the possible issues. The actual
>VFP (or Python) programming is not the problem as I see it - it is
>that manual SQL administration stuff that is the
>problem. Most of our clients are small offices and do not have very
>much IT expertise around. We need a royalty free way
>to do it. Our clients are not going to pay a per-seat charge and we
>don't want to do the accounting. Also, we need to be
>able to deliver a turn-key product so our users don't need to
>download anything or manually install anything or go
>through a lot of complex procedures. Probably half of our clients do
>not have internet access. Many are still using a
>modem connection to transmit their files to various payers.
>
>
>----- Original Message -----
>From: "Ken Kixmoeller f/h" <foxhelp@information-architecture.com>
>To: "ProFox Email List" <profox@leafe.com>
>Sent: Friday, July 16, 2010 9:50 AM
>Subject: Re: Large Data Tables
>
>
>Kent Belan wrote:
> > Hello,
> > I have a client that has been going along great for the last 10
> years. He is
> > now ready to explode.
> >
> > We are pushing the 2 gig limit now on the client table and he wants to add
> > tons more.
>
>(Anticipating flames, I say this softly...)
>
>A band-aid approach that may be expedient in your current circumstances:
>Stay ancient and split the offending table. Many years ago, I had an
>old-style Fox application (I created in FP [2?] and migrated to FP-Win,
>then to VFP). It had one table approaching the 2G limit. Since it was
>only one table, I elected to split it (vertically: fields 1-40 in table
>A, field 1 [PK] and 41-x in another).
>
>It didn't take too long to update the forms and reports. You might even
>find it just as easy to upgrade some of the data access language to SQL
>for SPT, or even build a data object for it. That may buy you time to
>upgrade the application to modern standards without holding the client
>back while you do.
>
>(Flame away, PFers!)
>
>Ken
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/576251.35520.qm@smtp105.sbc.mail.ac4.yahoo.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On Fri, Jul 16, 2010 at 1:30 PM, Jarvis, Matthew <MatJar@mckweb.com> wrote:
> So it's just this one table you have to worry about right now?
>
> Stephen brings up a good point.... If the client wants to add a bunch
> more records, and you aren't inclined to bite the bullet and convert to
> another storage arrangement, then trimming columns in the table might
> buy you some more time. Calculate max lengths in your text fields and
> trim accordingly. Those bytes might really add up....
------------------------
Having a description column in char(50) and all you need is 31 as your
max() length today in a table that is 1.5 mill rows could save you a
lot of space bringing it down to only char(35) today. Just removing
itemDescription out of the same table will give you a lot more TIME in
the near future as well.
Granted your reports are going to need a tweak but you know that
whatever you decide you have a big job ahead. Just UNION the SQL to
go against both tables for data for cust#ABC123.
Could you take data out of this table for transactions prior to
date()- 365 * 5 ? Just leave data 5 years or newer in the current
table. Maybe you are down to only last 18 months as it is, and if so
could you separate the transactional data int a pair of tables for
customers whose first char() # or A-L, and second table M-Z? Still a
PITA to screw with but just a different idea on busting up data to
usable sized tables.
--
Stephen Russell
Sr. Production Systems Programmer
CIMSgts
901.246-0159 cell
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/AANLkTiltKBfDmxWV0NryxA4BJ6W0D2J-r13Dbc-8bJ3n@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.