Using NODBC with variable company
hwijnveen
Member Posts: 2
I'm trying to read from the Navision C/Side database through NODBC. The default DSN that is created when installing NODBC does not contain a reference to a database file and company.
I've tried calling this DSN and specifying database and company in my connection string, but without success:
DSN=Navision Database;
Datbase=<path>;
CN=<company>;
Also, when I specify the database in the DSN itself, a reference to the company using the CN= syntax returns the error message "Company does not exist".
Does anybody know whether or not this can be done? If so, what syntax should be used in the connection string?
Even better would be specifying the entire connection from my own app, like
Driver=Microsoft Navision Driver;
Database= ...;
Company= ...;
etc
Is this possible?
Thanks,
Hans
I've tried calling this DSN and specifying database and company in my connection string, but without success:
DSN=Navision Database;
Datbase=<path>;
CN=<company>;
Also, when I specify the database in the DSN itself, a reference to the company using the CN= syntax returns the error message "Company does not exist".
Does anybody know whether or not this can be done? If so, what syntax should be used in the connection string?
Even better would be specifying the entire connection from my own app, like
Driver=Microsoft Navision Driver;
Database= ...;
Company= ...;
etc
Is this possible?
Thanks,
Hans
0
Comments
-
There are these parameters in the registry for some DSN source t:
[ODBC] DRIVER=Microsoft Dynamics NAV Driver ProgramFolder=C:\\Program Files\\Common Files\\Navision\\NODBC\\ DatabaseName= CompanyName=My Company Name Server=yes ServerName=MyServerName NetType=tcp UserID=Username PWD=codedpassword WindowsLogin=no Language=Auto (Windows Language) OptionFieldType=Text CommitCache=yes DBMSCache=8000 ClosingDate=no ReadOnly=no EnableBlob=no RegionalDecSymbol=no Identifiers=0 QryPlan=0 DrmSpy=0 FiltSpy=0 NoJoinOpt=0 NoFiltOpt=0 NoIndexes=0 MaxColSupport= CODEPAGE= ViewFileDirectory= ProgramFolder=C:\\Program Files\\Common Files\\Navision\\NODBC\\
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
