[QODBC-Desktop] How do I build a connection string with all the available QODBC parameters / Connection String with QODBC Parameters
Posted by Juliet (QODBC Support) on 03 November 2009 06:27 AM
|
|
General Connection StringInstructions The most challenging part of using QODBC in programming is the connection string. The simplest form includes a reference to a DSN. A system DSN called "QuickBooks Data" is automatically created when QODBC is installed. "QuickBooks Data" will be used in all examples but can be substituted for any different DSN name you make. Parameters available on the connection stringDFQ = Path to company file or. (dot) to indicate the currently open company file. OpenMode = F (Follow Company) / M (Multi-user) / S (Single-user). DeveloperCode = This is for users of the QODBC v5 OEM version only. It is required to connect to the OEM licensing model. The Code is given to you when you purchase a QODBC v5OEM licensing pack. ColumnNameLen = This number specifies the maximum length a column name can be. Using this is required in some development environments. Its use will make the returned column names not match the normally defined schema. OLE DB Services=-2 OptimizerOn = Yes / No UseCaseSensitiveRefNumber = Yes / No Example of simple DSN Standard syntax
Additional Parameters for QuickBooks Online Edition (QBOE)Parameters Added for QBOEIBizOEConnection = Yes / No A complete Example using the QODBC Remote Connector in the connection string DRIVER={QODBC Driver for QuickBooks};OptimizerDBFolder=%AppData%\QODBC Driver for QuickBooks\Optimizer;IBizRemotePWD=123456;IBizRemoteConnect=Yes;IBizRemoteURL=http://192.168.1.10:2080; IBizRemoteConnTimeOut=120;IBizRemotePromptForPWD=No;IBizRemoteForce2002_2003=Yes; OpenMode=M;DFQ=C:\QBOOKSDW.QBW;OLE DB Service=-2
| |
|
qd.Connect = "ODBC;DSN=QuickBooks Data;SERVER=QODBC"
before upgrading to 64-bit Access, QB 2016, and new Qodbc with REMOTE server...
thanks!
You need to use QRemote 64-Bit DataSource (DSN) in connection string as below & check again:
qd.Connect = "ODBC;DSN= QuickBooks Data 64-Bit QRemote;SERVER=QODBC"
If you are still facing issue, Please raise a support ticket to the QODBC Technical Support department from below mentioned link & provide requested information:
http://support.flexquarters.com/esupport/index.php?/Tickets/Submit
We may need the following information, Please attach below listed files when replying to the ticket.
1) Screenshot of QODBC Setup Screen -- > About
2) Screenshot of the issue you’re facing.
Share Entire Log Files as an attachment in text format from
3) QODBC Setup Screen -- > Messages -- > Review QODBC Messages
4) QODBC Setup Screen -- > Messages -- > Review SDK Messages
Refer: How to take screenshot: www.qodbc.com/links/screenshot.htm