C/ODBC problem

Magno
Member Posts: 168
Hi,
I just installed C/ODBC without any errors, but when i try to connect via ASP to the database server i get an isam error.
When i make a connection in the ODBC datasource administrator, i choose a company, it works, but when i try to change the company or try saving the connection then i get an error:
Does anyone know what i can do? I am really getting desperate...
Hope anyone can help me.
I just installed C/ODBC without any errors, but when i try to connect via ASP to the database server i get an isam error.
When i make a connection in the ODBC datasource administrator, i choose a company, it works, but when i try to change the company or try saving the connection then i get an error:
The operating system cannot load the dll module nc_tcp.dll.
Does anyone know what i can do? I am really getting desperate...
Hope anyone can help me.
0
Comments
-
Why don't you post your ASP code, I will try to replicate it...0
-
Make sure the ODBC version is exaclty the same as your Navision version. Different versions will not work!"Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."0 -
<% Set conn = Server.CreateObject("ADODB.Connection") dsn = "DRIVER={C/ODBC 32 bit};" dsn = dsn & "UID=user;" dsn = dsn & "PWD=pwd;" dsn = dsn & "sName=NAVSRV;" dsn = dsn & "NType=tcp;" dsn = dsn & "CN=Test Company;" dsn = dsn & "CSF=Yes;" dsn = dsn & "SERVER=N;" dsn = dsn & "RD=No;" dsn = dsn & "ML=2048;" dsn = dsn & "CD=No;" dsn = dsn & "BE=Yes;" dsn = dsn & "CC=Yes;" dsn = dsn & "RO=No;" dsn = dsn & "QTYesNo=Yes;" dsn = dsn & "IT=a-z,A-Z,0-9,_;" dsn = dsn & "OPT=Text" session("DSN") = dsn %>
With this i create my connectionstring
I am sure the company name is correct(with the upper and lowercases)
to be sure i added the server to the hosts file, but that shouldn't be necesary because we have a DNS server.
I get the error when i do<!--#include file="createConn.asp"--> <% Set conn = Server.CreateObject("ADODB.Connection") conn.open(session("dsn")) %>
the createconn file is where i make the dsn string0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions