Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server slower than VFP?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00250319
Message ID:
00251489
Views:
13
Hello John,

Thanks for your input (worth much more than $.02!)

I have tried remote views, SPT, and the SPT-called stored proc as you suggested. I was unable to get any real gains with any of these. I even experimented with ADO, but the type of results aren't what we need, either (we need multiple records displayed at once).

What I am tring to accomplish is a search/lookup function. The user inputs a last name, say 'SMITH', and if there is more than one match (and with this last name there are, of course), he must select from a list of further details such as SSN, account#, etc... I realize there are other methods in which to accomplish this task that don't require a large browse window, but this is the method our users are already familiar with, and I would rather not make the task more difficult after they 'upgrade'.

It's possible this application is not suitable for SQL Server, I'm just wondering what tricks are available that might allow us to use it.

The server is a Pentium II 233 MMX, 64MEG with at least 200M free disk space.

>It appears that you are using a remote view here. In a word, remote views suck. If you want the best performance, create a stored procedure and call the stored procedure via SPT if you need a VFP cursor. Or, you can use an ADO Command Object to fire the stored proc to create an ADO Recordset.
>
>Regarding the 12,000 rows, do you really need to download that much info over the wire? It seems like a lot of data? Regardless of that, what are the configuration statistics on the SQL box? Granted, you may only have NT and SQL on the machine. However, NT itself needs at least 24 mb for itself to operate correctly. Unless you are running at least 64mb of RAM, I would say you have a lack of horsepower here. Also, how much free disk-space do you have?
>
>As Mike has already indicated, there can be many factors. Regarding the move to SQL, speed and performance usually rank at or near the bottom of reasons why to make such a move. For me, the top reasons are:
>
>1. Size of Data - being over the 2gb Fox limit
>2. Need for security
>3. Need for transaction logging
>4. Need for replication abilities
>
>Just my 2-cents...
>
>
>
>>Hello!
>>I have a table setup in a SQL Server 7.0 database with 1.5 million records. Doing a very simple query, on an indexed field, in the Query Analyzer on the server machine itself, seems very slow. -Considerably slower than running the same query on a VFP table on the same machine. I'm talking about 27 seconds for a return of 12,000 records from a query like:
>>
>>SELECT MyField FROM MyDBC.dbo.MyTable WHERE MyField = 'MyValue'
>>
>>There is an index on MyField.
>>The statistics report usually shows about 23 logical reads.
>>
>>There has to be something I'm doing wrong. Any suggestions would be very appreciated!
>>Mark
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform