Navi3.7 C/ODBC problem: cannot find tablelist
MHollender
Member Posts: 5
Hi,
I am testing C/ODBC for Navi 3.7.
I installed it with I think mostly default settings:
Data Source: sc
Program Folder: C:\Program Files\Microsoft Business Solutions-Navision\Client
Connection: Local
Database Name:
\Navi\fdb\helyesbit\helyesbit.fdb
Company Name: CRONUS Rt.
User ID: ODBC
Password: ODBC (tested)
Commit Cache: Yes
DBMS Cache: 1000
Enable BLOB Fields: Yes
Identifiers: azAZ09 (to play it safe)
Option Fields: Text
Query timeout: Yes and 120
Read-Only: No
TMP Path: C:\
Closing Date: Yes
Use Regional Decimal: No
Language: Auto
Now, when I try to open it in Excel 2003, it says table list cannot be read.
And when I try the following Perl program:
use Win32::ODBC;
my $DSN = "sc";
if (!(my $db = new Win32::ODBC($DSN))){
print "Error connecting to $DSN\n";
print "Error: " . Win32::ODBC::Error() . "\n";
exit;
}
my @list=$db->TableList;
print "Number of bloody tables: ";
print scalar @list;
it happily prints zero. It can connect to the datasource, as it does not say error connecting, but no tablelist. The datasource seems to be empty.
I tried to trifle with all the settings, language etc. I also tried it on a machine where I am sure there never was another version of Navi installed.
Any ideas?
thanxalot:
Miklos
I am testing C/ODBC for Navi 3.7.
I installed it with I think mostly default settings:
Data Source: sc
Program Folder: C:\Program Files\Microsoft Business Solutions-Navision\Client
Connection: Local
Database Name:
Company Name: CRONUS Rt.
User ID: ODBC
Password: ODBC (tested)
Commit Cache: Yes
DBMS Cache: 1000
Enable BLOB Fields: Yes
Identifiers: azAZ09 (to play it safe)
Option Fields: Text
Query timeout: Yes and 120
Read-Only: No
TMP Path: C:\
Closing Date: Yes
Use Regional Decimal: No
Language: Auto
Now, when I try to open it in Excel 2003, it says table list cannot be read.
And when I try the following Perl program:
use Win32::ODBC;
my $DSN = "sc";
if (!(my $db = new Win32::ODBC($DSN))){
print "Error connecting to $DSN\n";
print "Error: " . Win32::ODBC::Error() . "\n";
exit;
}
my @list=$db->TableList;
print "Number of bloody tables: ";
print scalar @list;
it happily prints zero. It can connect to the datasource, as it does not say error connecting, but no tablelist. The datasource seems to be empty.
I tried to trifle with all the settings, language etc. I also tried it on a machine where I am sure there never was another version of Navi installed.
Any ideas?
thanxalot:
Miklos
Miklós Hollender
Navision Developer/Consultant
Delta Elektronik Ltd.
Budapest
Hungary
miklos.hollender@delta.hu
Navision Developer/Consultant
Delta Elektronik Ltd.
Budapest
Hungary
miklos.hollender@delta.hu
0
Comments
-
Update: some info from a friend. He told me that he thinks that the C/ODBC is just a simple wrapper for C/FRONT, thus it does not support tablelist function and tablenames, only numbers.
He may not be right as "SELECT * FROM 27" does not work too.
However, the strange thing is that "SELECT * FROM Cikk" does not give an error in Perl. "Cikk" is the Hungarian caption of the table Item, and language is set to Windows-auto, and it is Hungarian. But the query is still empty. Also, "Select * FROM Company" also does not give an error - maybe this table is has no HUN caption - but empty.
Maybe C/ODBC uses captions instead of names?
Any ideas?Miklós Hollender
Navision Developer/Consultant
Delta Elektronik Ltd.
Budapest
Hungary
miklos.hollender@delta.hu0 -
Problem is in Language=Auto - set it to Neutral to have English names and not local Captions.... see C/ODBC documentation.0
-
Thanx Kine,
but it did not solve the problem. I think there is a deeper problem, maybe the odbc driver is buggy with XP or something.Miklós Hollender
Navision Developer/Consultant
Delta Elektronik Ltd.
Budapest
Hungary
miklos.hollender@delta.hu0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 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
