Select the product you need help with
Τρόπος εγκατάστασης αρχείων προέλευσης δεδομένων ODBC κατά τη διανομή εφαρμογώνΑναγν. άρθρου: 123008 - Δείτε τα προϊόντα στα οποία αναφέρεται το συγκεκριμένο άρθρο. Σε αυτήν τη σελίδαΠερίληψηΑυτό το άρθρο περιγράφει τις ακόλουθες τέσσερις μεθόδους για να εγκαταστήσετε μια προέλευση δεδομένων ODBC, σε έναν υπολογιστή:
Περισσότερες πληροφορίεςΑπαιτούμενα αρχείαΠρέπει να κατανεμηθούν τα ακόλουθα αρχεία με την εφαρμογή σας, εάν χρησιμοποιήσετε το ODBC. Όταν χρησιμοποιείτε τον "Οδηγό εγκατάστασης" για να δημιουργήσετε δισκέτες διανομής, βεβαιωθείτε ότι περιλαμβάνονται τα απαραίτητα αρχεία στη λίστα αρχείων. Πρέπει να εγκατασταθούν όλα τα αρχεία που παρατίθενται στον κατάλογο \WINDOWS\SYSTEM.Προαιρετικά αρχεία (SQL Server ή Oracle) χαρακτηρίζονται με έναν αστερίσκο (*).
File Description
----------------------------------------------------------------------
ODBC.DLL The ODBC Driver Manager. This DLL is called by the
Microsoft Jet database engine when performing ODBC
operations. The Driver Manager handles loading the
correct ODBC driver and dispatching ODBC function
calls to the driver.
ODBCINST.DLL The ODBC Driver Installation library. This DLL
contains Driver installation specific functions.
The ODBC Administrator (ODBCADM.EXE) calls functions
exported from this DLL when installing ODBC
drivers. You may also call functions in this DLL
to automate driver installation.
ODBCADM.EXE The ODBC Administrator program. This program
allows a user to install ODBC drivers and
set up or modify Data Sources.
ODBCINST.HLP The ODBC Administrator help file.
COMMDLG.DLL The Common Dialog DLL. This DLL is used by the
ODBC Administrator program.
CTL3D.DLL The 3D Control DLL. This DLL is used by the ODBC
Administrator program. If you are using ODBC.DLL
version 1.05 or greater, you need to distribute
CTL3DV2.DLL.
PDSODBC.DLL Crystal Reports Physical Server DLL for ODBC. This
DLL is required only if your application uses Crystal
Reports to access an ODBC data source.
<driver>.DLL The ODBC driver(s) that the application will use
to connect to specific Data Sources.
SQL Server: SQLSRVR.DLL*
Oracle 6: SQORA.DLL*
<netlib>.DLL The network library file(s). This file is used
to access the Data Source when using a specific
network protocol.
Named Pipes: DBNMP3.DLL*
TCP/IP (Sybase SQL Server): WDBNOVTC.DLL*
IPX/SPX (Sybase SQL Server): WDBNOVSP.DLL*
SQL*Net Interface: ORA6WIN.DLL*
INSTCAT.SQL* SQL Server Catalog Stored Procedures script.
DRVSSRVR.HLP* SQL Server ODBC Driver help file.
ORASETUP.DLL* Oracle ODBC Driver setup functions.
DRVORACL.HLP* Oracle ODBC Driver help file.
ORACLE.TXT* Oracle ODBC Setup "read me" file.
ODBC.INI Initialization file containing information
about specific Data Sources. The DSN parameter
in the Connect property of the data control or
the OpenDatabase statement corresponds to an
entry in the ODBC.INI. This file must also be
created or modified on the client computer.
ODBCINST.INI The Initialization file that contains
information about installed ODBC drivers. The
RegisterDatabase statement and ODBC Administrator
use the information contained in this file to
set up Data Sources. Entries in ODBCINST.INI
are created either by running an ODBC driver
setup or through the ODBC API. This file must
also be either created or modified on the client
computer.Τέσσερις μέθοδοι για την λήψη DSN πληροφορίες σε ODBC.INI και ODBCINST.INIΤα αρχεία .ini αποθηκεύουν πληροφορίες σχετικά με τα προγράμματα οδήγησης ODBC και τα αρχεία προέλευσης δεδομένων ODBC. Ως αποτέλεσμα, είναι μεταβλητή--ένας χρήστης ενδέχεται να έχει ήδη τα εγκατεστημένα στον κατάλογο \WINDOWS. Εάν ο προγραμματιστής να αντιγράψετε blindly ODBC.INI και ODBCINST.INI στον υπολογιστή του χρήστη, τα νέα αρχεία ενδέχεται να αντικαταστήσει υπάρχοντα αρχεία προέλευσης δεδομένων.Οι παρακάτω τέσσερις μέθοδοι που μπορείτε να χρησιμοποιήσετε για να λάβετε πληροφορίες DSN στα αρχεία ODBC.INI και ODBCINST.INI του χρήστη. Εγκατάσταση του ODBCΓια να εγκαταστήσετε ένα πρόγραμμα οδήγησης ODBC και να δημιουργήσετε ένα ΑΡΧΕΊΟ προέλευσης δεδομένων ODBC, η ηλεκτρονική τεκμηρίωση Βοήθειας της Visual Basic συνιστά να αντιγράψετε όλα τα περιεχόμενα του καταλόγου \VB\ODBC σε δίσκο πρόσθετες διανομής.Ως προγραμματιστής, μπορείτε να καθορίσετε ότι η εισαγωγή του δίσκου και εκτελέστε το SETUP.EXE από τη δισκέτα. Επιπλέον, μπορείτε να ζητήσει από το χρήστη για να εισαγάγετε τη δισκέτα ODBC και στη συνέχεια χρησιμοποιήστε την εντολή κελύφους της Visual Basic σε κέλυφος να SETUP.EXE. Ο Οδηγός εγκατάστασης (Setup) αντιγράφει και τροποποιεί SETUP1.MAK σε SETUP1A.MAK κατά τη διάρκεια της διαδικασίας δημιουργίας τους δίσκους διανομής. Δημιουργεί SETUP1A.MAK σε SETUP1.EXE, συμπιέζει τον και αντιγράφει τους δίσκους διανομής. Όταν SETUP.EXE από τους δίσκους διανομής, τα αρχεία στο SETUP.LST αντιγράφονται στον υπολογιστή προορισμού. SETUP1.EX_ είναι χωρίς συμπίεση και να εκτελεστούν για να ξεκινήσετε την αντιγραφή αρχείων από τις δισκέτες στον υπολογιστή προορισμού. Είναι δυνατό να στη συνέχεια τροποποιήστε SETUP1A.MAK, αναδόμηση SETUP1.EXE, συμπιέσετε και αντιγράψτε τους δίσκους διανομής. Για να εξασφαλίσετε ότι το μέγεθος του συμπιεσμένου αρχείου θα χωράει στο πρώτο δίσκο διανομής, πρέπει να συμπλήρωση του έργου με κωδικό πριν από την πρώτη εκτέλεση του "Οδηγού εγκατάστασης". Then you can change the code into comments and add new code to prompt for the ODBC Setup disk. The resulting EXE size will then still fit on the first distribution floppy disk. Modify SETUP1.FRM in the \VB\SETUPKIT\SETUP1 directory to add the necessary code to pad the executable. This file is copied into SETUP1A.MAK during the Setup Wizard's execution. ΣΗΜΕΙΩΣΗ: Microsoft Technical Support does not support the modification of the Setup process or any of the setup files. Support is provided for the Setup Wizard and the files it creates on an "as is" basis only. Here are the steps to follow:
For more information on modifying SETUP1.EXE please refer to Chapter 25, "Distributing Your Application" in the Microsoft Visual Basic Programmer's Guide. RegisterDatabaseVisual Basic provides the RegisterDatabase statement to help in installing ODBC data sources, not drivers. The RegisterDatabase statement assumes that ODBCINST.INI and ODBCINST.DLL already exist on the computer. That is, the drivers must be installed before running RegisterDatabase. If so, the developer can use RegisterDatabase to add or update an entry in the ODBC.INI.The problem with this method is that if the client computer does not have ODBC installed on the computer, the ODBCINST.INI and DLL will not exist. Also, if the ODBC driver is new to the computer, there will not be an entry for it in ODBCINST.INI, so RegisterDatabase will fail then as well. The following description, syntax, remarks, and example about the RegisterDatabase statement come from the Visual Basic online Help: Περιγραφή: Makes connect information for an ODBC data source name available for
use by the OpenDatabase function. Syntax:RegisterDatabase dsn, driver, silent, attributes Remarks:
The RegisterDatabase statement has the following parts:
ODBC APIThis is probably the most flexible and most efficient method, but most developers are not familiar with it and do not have the ODBC SDK that documents the API. Developers should get the Microsoft Software Development Kit (SDK) and get the "Microsoft ODBC 2.0 Programmer's Reference and SDK Guide" from Microsoft Press.Copy INIIf the developer is certain that an ODBC.INI and ODBCINST.INI do not exist on the installation computer, they can simply copy the files. However, the developer must ensure that the paths to the drivers are correct; paths are fully qualified within the .INI files. For example, the ODBC.INI file will specify C:\WINDOWS\SYSTEM\SQLSRVR.DLL as the driver for SQL Server, so if the user's Windows setup is in \WIN31, the path won't work.ΙδιότητεςΑναγν. άρθρου: 123008 - Τελευταία αναθεώρηση: Σάββατο, 18 Δεκεμβρίου 2010 - Αναθεώρηση: 2.0
Μηχανικά μεταφρασμένο ΣΗΜΑΝΤΙΚΟ: Αυτό το άρθρο είναι προϊόν λογισμικού μηχανικής μετάφρασης της Microsoft και όχι ανθρώπινης μετάφρασης. Η Microsoft σάς προσφέρει άρθρα που είναι προϊόντα ανθρώπινης αλλά και μηχανικής μετάφρασης έτσι ώστε να έχετε πρόσβαση σε όλα τα άρθρα της Γνωσιακής Βάσης μας στη δική σας γλώσσα. Ωστόσο, ένα άρθρο που έχει προκύψει από μηχανική μετάφραση δεν είναι πάντα άριστης ποιότητας. Ενδέχεται να περιέχει λεξιλογικά, συντακτικά ή γραμματικά λάθη, όπως ακριβώς τα λάθη που θα έκανε ένας μη φυσικός ομιλητής επιχειρώντας να μιλήσει τη γλώσσα σας. Η Microsoft δεν φέρει καμία ευθύνη για τυχόν ανακρίβειες, σφάλματα ή ζημίες που προκύψουν λόγω τυχόν παρερμηνειών στη μετάφραση του περιεχομένου ή χρήσης του από τους πελάτες της. Επίσης, η Microsoft πραγματοποιεί συχνά ενημερώσεις στο λογισμικό μηχανικής μετάφρασης. Η αγγλική έκδοση αυτού του άρθρου είναι η ακόλουθη:123008
(http://support.microsoft.com/kb/123008/en-us/
)
| Μεταφράσεις άρθρων
|





Επιστροφή στην αρχή








