Kadmos.com


?>

  Home | Products | Download | Purchase | Support | Language

Products
DXFReader ActiveX Control

IXF ActiveX Control

Postel ActiveX Control
 • Postel Files Overview
 • Distribution
 • Installation
 • Quick Start
 • Control Summary
 • Download
 • Buy now!
 • Postel Reference
  • Properties
   • AccountCenter
   • AddressField
   • BatchName
   • BatchType
   • CityField
   • Connect
   • ContactEmail
   • ContactName
   • ContactNumber
   • CountryField
   • CurrencyFiel...
   • DatabaseName
   • DataRecordCount
   • DateFieldsFo...
   • FareType
   • FaxNumber
   • FileName
   • Graph
   • Graphs
   • Insert
   • Inserts
   • InsertsCityD...
   • LineLength
   • NameField
   • Organization...
   • PageCount
   • PriorityType
   • ProvinceField
   • RecordCount
   • RecordSource
   • ReplyEnvelop...
   • ReplyEnvelop...
   • ReplyEnvelop...
   • ReplyEnvelop...
   • ReplyEnvelop...
   • ReplyEnvelop...
   • ReplyEnvelop...
   • ReplyEnvelop...
   • ReplyEnvelop...
   • ReplyEnvelop...
   • ReplyEnvelop...
   • RLetterAddress
   • RLetterCity
   • RLetterCodeF...
   • RLetterName
   • RLetterOrgan...
   • RLetterProvince
   • RLetterZip
   • SenderAddress
   • SenderCity
   • SenderName
   • SenderOrgani...
   • SenderProvince
   • SenderZIP
   • Signature
   • Signatures
   • SpecificText...
   • SubscriberID
   • TextFileName
   • Typographica...
   • UseADO
   • UserID
   • UserPassword
   • Version
   • ZIPField
  • Methods
  • Events


Tech Support
OnLine Support
Phone Support
Sample Code
Registered Users
FAQ
References
Kadmos
Contact Kadmos
Environment
Customer List
Newsletter
Download
ActiveX Controls
Updates
Purchase
Price List
International Resellers
Our Guarantee
Shipment Options
Payment Options
Shopping Cart
    Postel Control - Connect Property

Kadmos Postel ActiveX Control      Previous Next
Postel Control
Connect Property

Description Returns/sets a value that provides information about the source of an open connection or an open database. Restituisce od imposta la stringa di connessione ODBC.
Syntax
Visual Basic
[form.]Postel.Connect[ = Text$]
Visual C++ CString Postel.GetConnect();
void Postel.SetConnect(LPCTSTR lpszNewValue);
Delphi property Connect: WideString;
C# string Postel.Connect;
Remarks

The Connect property syntax has two parts:
PartDescription
databasetypeOptional. A String that specifies a database type. For Microsoft Jet databases, exclude this argument; if you specify parameters, use a semicolon (;) as a placeholder.
parametersOptional. A String that specifies additional parameters to pass to ODBC or installable ISAM drivers. Use semicolons to separate parameters.

The Connect property setting is a String composed of a database type specifier and zero or more parameters separated by semicolons. The Connect property passes additional information to ODBC and certain ISAM drivers as needed.

To perform an SQL pass-through query on a table linked to your Microsoft Jet database (.mdb) file, you must first set the Connect property of the linked table's database to a valid ODBC connection string.

For base tables in a Micorosoft Jet database (.mdb), the Connect property setting is a zero-length string ("").

The following table shows possible database types and their corresponding database specifiers and paths for the Connect property setting. In an ODBCDirect workspace, only the "ODBC" specifier can be used:

Database typeSpecifierExample
Microsoft Jet Database[database];drive:\path\filename.mdb
dBASE IIIdBASE III;drive:\path
dBASE IVdBASE IV;drive:\path
dBASE 5dBASE 5.0;drive:\path
Paradox 3.x Paradox 3.x;drive:\path
Paradox 4.xParadox 4.x;drive:\path
Paradox 5.xParadox 5.x;drive:\path
Microsoft Excel 3.0Excel 3.0;drive:\path\filename.xls
Microsoft Excel 4.0Excel 4.0;drive:\path\filename.xls
Microsoft Excel 5.0 or Microsoft Excel 95Excel 5.0;drive:\path\filename.xls
Microsoft Excel 97Excel 8.0;drive:\path\filename.xls
Lotus 1-2-3 WKS and WK1Lotus WK1;drive:\path\filename.wk1
Lotus 1-2-3 WK3Lotus WK3;drive:\path\filename.wk3
Lotus 1-2-3 WK4Lotus WK4;drive:\path\filename.wk4
HTML ImportHTML Import;drive:\path\filename
HTML ExportHTML Export;drive:\path
TextText;drive:\path
ODBCODBC;
DATABASE=database;
UID=user;
PWD=password;
DSN= datasourcename;
[LOGINTIMEOUT=seconds;]
None
Microsoft ExchangeExchange 4.0;
MAPILEVEL=folderpath; [TABLETYPE={ 0 | 1 }];[PROFILE=profile;]
[PWD=password;]
[DATABASE=database;]
drive:\path\filename.mdb

Here are some Connect string samples:

'Access
Postel1.Connect = ""
Postel1.DatabaseName = "c:\...\test.mdb"
Postel1.RecordSource = "SELECT CustomerID, ShippedDate FROM Orders"

'Text
Postel1.Connect = "Text;"
Postel1.DatabaseName = "C:\Directory"

'Excel 5.0
Postel1.Connect = "Excel 5.0;"
Postel1.DatabaseName = "C:\...\Test.xls"

'SQLServer 7
Postel1.Connect = "ODBC;DSN=TestSQLServer7;SERVER=_
(local);UID=sa;PWD=;WSID=UserID;DATABASE=TestDB"
Postel1.DatabaseName = "TestDB"

'InterBase
Postel1.Connect = "ODBC;DSN=InterBaseTest;UID=SYSDBA;_
PWD=masterkey;DB=\\Server\InterBase\Employee.gdb"
Postel1.DatabaseName = "InterBaseTest" 'This is the User Data Source Name

'Oracle
Postel1.Connect = "ODBC;DSN=TestOra;UID=SCOTT;PWD=TIGER;"

La sintassi della proprietà Connect è costituita dalle parti riportate di seguito.
ParteDescrizione
tipodatabaseOpzionale. Tipo di dati String che specifica un tipo di database. Per i database del modulo di gestione di database Microsoft Jet, escludere questo argomento. Se si specifica parametri, utilizzare un punto e virgola (;) come segnaposto.
parametriOpzionale. Tipo di dati String che specifica dei parametri aggiuntivi da passare a un driver ODBC o ISAM installabile. Utilizzare un punto e virgola per separare i parametri.

L'impostazione della proprietà Connect è una stringa composta da una specifica del tipo di database e zero o più parametri separati dal punto e virgola. La proprietà Connect viene utilizzata per passare informazioni aggiuntive a driver ODBC e ad alcuni driver ISAM, secondo necessità.

Per eseguire una query SQL di tipo pass-through su una tabella collegata al file MDB del database Microsoft Jet, è necessario prima impostare la proprietà Connect del database della tabella collegata ad una stringa di connessione ODBC valida.

Nel caso di tabelle base di database Jet (MDB), l'impostazione della proprietà Connect è una stringa a lunghezza zero ("").

La tabella precedente indica alcuni tipi possibili di database con le specificazioni e i percorsi corrispondenti per l'impostazione della proprietà Connect. In un'area di lavoro ODBCDirect, è possibile utilizzare solo "ODBC".

Data Type String

Copyright © 2001/2011 Kadmos.com - All rights reserved. Privacy Policy