Using dBase IV with VB via ODBC without a DSN 
Author Message
 Using dBase IV with VB via ODBC without a DSN

I am trying to determine the correct code to create a connection to dBASE
files using VB via ODBC without first having to set up a DSN connection (of
which 9 would be required for this app).  Although I have code that works
with pre-defined connections, I don't want to force users to have to
correctly name and create 9 connections for each machine!

For example, I am trying to connect to a dBase file named Nodes.dbf in the
C:\CIPS\SHAPEFILES\ directory.  I currently use the following code, but am
trying to determine to correct connect string to avoid the DSN problem:

    Dim ADONode As New ADODB.Connection
    Dim adoNodeRS As Recordset

  ADONode.CursorLocation = adUseClient  ADONode.Open
"PROVIDER=MSDASQL;dsn=nodes.dbf;uid=;pwd=;"  Set adoNodeRS = New Recordset
adoNodeRS.Open "select
APOID,AP_LOCATIO,BASE_ABBR,BLDG,FLOOR,ROOM,NODE_TOPO_,IP_HOSTNAM,AP_FORMAT
from NODES", ADONode, adOpenStatic, adLockOptimistic

Etc, etc.

Thanks in advance...

Bryan

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Sun, 02 Jun 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Problem with dBase IV ODBC access via ADO

2. Problem with dBase IV ODBC access via ADO

3. running existing dBase IV apps via VB/Crystal Rpts

4. crystal report using ODBC without a DSN

5. dBase IV + ODBC Index Question

6. How to read dBASE IV with ODBC 32?

7. Crystal and ODBC DSN/DSN-less connections - do I need USER DSN or SYSTEM DSN

8. Extracting information from a ODBC DSN via VB?

9. Delete records when using dBase IV

10. Creating ODBC System DSN by using ODBC API ?

11. Using VB to connect to DB without using ODBC

12. Using VB to connect to DB without using ODBC

 

 
Powered by phpBB® Forum Software