Help SQL SERVER 6.5/VB 5.0 
Author Message
 Help SQL SERVER 6.5/VB 5.0

We currently have an application written in VB 3.0 and VB 4.0 using
Access 2.0 on a server.  We are considering upgrading to VB 5.0 and
using SQL Server 6.5.  Does anyone have any suggestions on:

        1.  converting an Access 2.0 database to SQL Server 6.5?

        2.  We currently use a number of "direct seeks on indexes" in the
existing app. using Access 2.0.             (Example - Table in excess of
200,000 records)  Are   we going to have a performace
degredation                  using sql and being unable to use the direct
seek?

        3.  if you are using a sql statement to search for example on a
customer number = "XXXXX" and the                     number is the primary
key,  does the index come into play in the sql?

        4.  any suggestions on the approach we should use in the conversion
from VB 3.0 to 5.0?

Thanks for your help.



Fri, 26 Nov 1999 03:00:00 GMT  
 Help SQL SERVER 6.5/VB 5.0

Quote:

>    1.  converting an Access 2.0 database to SQL Server 6.5?

Supposedly there is an 'upsizing wizard', but I've never seen it.

Quote:
>    2.  We currently use a number of "direct seeks on indexes" in the
>existing app. using Access 2.0.         (Example - Table in excess of
>200,000 records)  Are       we going to have a performace
>degredation                      using sql and being unable to use the direct
>seek?

No, your performance should actually be _better_, assuming you index
your tables correctly in SQL Server. (BE WARNED: SQL Server is NOT for
beginners; it's probably a good idea to send someone on a SQL Server
course before you even CONSIDER using it!)

Quote:
>    3.  if you are using a sql statement to search for example on a
>customer number = "XXXXX" and the                         number is the primary
>key,  does the index come into play in the sql?

It depends. If your customer number is the first column in the primary
key index, yes, it will use the index, but only if your query is
likely to return less than a certain percentage of the rows in the
table. If you have a composite key and customer number is not the
first column, or you don't have your WHERE clause in the correct
order, or your query will return a large percentage of the records,
the index will not be used. (There are a whole load of other rules as
well, but for simple equality selects as above, the index will almost
always be used, assuming it's constructed correctly).

For example:

Your primary key (i.e. clustered) index is:

supplier_id, customer_id

If you only use customer_id in your WHERE clause, the index will not
be used, as SQL Server only stores statistics for the first column in
an index.

If you use both supplier_id and customer_id in your WHERE, in that
order, there is a good chance the index will be used.

If you SET SHOWPLAN ON while running queries in ISQL /w, you will be
able to see whether the index is being used or not.

Performance tuning of this type on any big RDBMS is, as you can see,
very much a black art! Get your cat and your cauldron ready. :-)

Quote:
>    4.  any suggestions on the approach we should use in the conversion
>from VB 3.0 to 5.0?

Nope!


Mon, 29 Nov 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. help: vb 5.0 enterprise, ado, and sql server 6.5 readtext, writetext

2. VB 5.0 and SQL Server 6.5 Contract

3. LONDON - VB 5.0/Sql-Server 6.5/ NT 4 - Developers - Derivatives Trading Systems

4. LONDON - VB 5.0/Sql-Server 6.5/ NT 4.0 - Developers - Derivatives Trading Systems

5. VB 5.0, SQL Server 6.5

6. S10008 Error From SQL Server 6.5 Running VB 5.0 Stored Procedures

7. Writing data from VB 5.0 to a SQL Server 6.5 database

8. VB 5.0 and SQL Server 6.5

9. VB 5.0 & Stored Procedure (SQL Server 6.5)

10. DNS-Less Trusted Connection Discrepancy - Sql Server 6.5 -- VB 5.0

11. How to connect to SQL Server 6.5 using VB 5.0

12. S10008 Error From SQL Server 6.5 Running VB 5.0 Stored Procedures

 

 
Powered by phpBB® Forum Software