473,513 Members | 2,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connecting to iSeries with MS Access

1 New Member
We have been using ODBC connections that are in the registry of the computer. However these connections aren't in by default so when a new user uses the Access program or when a current user goes to a different computer, we have to send them the batch program to put the ODBC hooks on that machine.

We want to get around that by using Pass-Through queries and the ODBC connection string. What we have got to work is this:

ODBC;FILEDSN=n:\PND43851.DSN

Then we put a DSN file in that location and the program connects using that DSN. The DSN file looks like this:

[ODBC]
DRIVER=iSeries Access ODBC Driver
UID=
SIGNON=2
CONNTYPE=2
DESC=iSeries Access ODBC
SQDIAGCODE=
DATABASE=
QAQQINILIB=
PKG=QGPL/DEFAULT(IBM),1,0,1,0,512
TRACEFILENAME=C:\
SORTTABLE=
LANGUAGEID=ENU
XLATEDLL=
DFTPKGLIB=QGPL
DBQ=RIDTA385
SYSTEM=PND43851

We want to take it one step further and put all the info in the ODBC Connection string but we haven't had any luck. We have tried many variations of the following:

ODBC;Driver={iSeries Access ODBC Driver};System=PND43851;

When we use ODBC;Driver={iSeries Access ODBC Driver}; an ODBC connection screen comes up like you are at your control panel in windows and go to ODBC connections.

If we use ODBC;Driver={iSeries Access ODBC Driver};System=PND43851; we get error (-7778) which is "there is no message for this error".

We have tried all kinds of combinations of "'s and ;'s and any other thing we can think of, including using all the fields in the above DSN in that line.

Is this even possible? If so can someone tell me where my error is?

Thanks.
Mar 9 '07 #1
1 6011
NeoPa
32,558 Recognized Expert Moderator MVP
You've obviously tried the 'Trial & Error' approach with some intelligent guesswork.
The other thing I'd try is to find a manual (hard copy or web based - doesn't matter which) to see if that can tell you.
The last possibility I can think of is to try the vendor's web site. Maybe they even have forums there for technical questions.
I'm sure it will be specific to the product. I did it to my SQL server by linking a table then studying the .Connect property of the linked table (with some Trial & Error). My other ODBC server (EasySoft) had quite different parameters set.
Mar 11 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
7780
by: Thad Rizzi | last post by:
My webserver is an iSeries and I want to run some PHP scripts on it using SQL to access data on the iSeries. Does anyone have any exapmles or resources on the most effective way to do this? I am rather green with PHP. Any help would be appreciated, Thad Rizzi
2
3618
by: Trevor Davies | last post by:
We have a database we wish to port to an as/400 running v4r5. Have got db2 connect. The problem is we cannot sort out the different terminologies between windows and as/400. The as/400 people have created a test database but we cannot connect to it. Under their terminology there is not such thing as a new database, the whole system is a...
1
14891
by: Yanik Reid | last post by:
When I run the following vb.net code, I'm not able to acces the my database AMFLIB. I use to be able to access AMFLIB with the old ODBC driver from IBM iSeries Access but now I want to use the new managed IBM.Data.DB2.iSeries data provider from iSeries Access V5R3. When I remove Database=AMFLIB from the connection string, I can connect...
1
3351
by: ben_chicago | last post by:
I JUST INSTALLED Visual Basic.NET BUT, CANNOT CONNECT TO MY AS/400 (OS400 5.1). WHEN I TRY TO CONNECT I GET A SERVER EXPLORER MSG: "UNABLE TO CONNNECT TO DATABASE. IT IS ONLY POSSIBLE TO CONNECT TO SQL SERVER DESKTOP ENGINE DATABASES AND MICROSOFT ACCESS DATABASES WTIH THIS VERSION OF VISUAL STUDIO." -What Version Of Visual Studio...
3
4043
by: Laurence | last post by:
Hi there, Does somebody know the efficent way to connect DB2/400? Through iSeries Access ODBC/OLEDB driver or DB2 Connect? Which will more fast and efficent? In addition, does DB2 Connect use APPC over TCP/IP protocol? Or SNA protocol?
5
5695
by: Nathan Given | last post by:
Hello All, I've been struggling on and off for 3 months trying to connect to an DB2 database running on an IBM iSeries machine. I FINALLY figured out how to connect with Coldfusion (see instructions below). So, now I am trying to connect to the same database with MS Access. I want to link the tables within Access so I can quickly...
2
5327
by: Keith | last post by:
I am trying to connect to a DB2 database using "iSeries Access ODBC Driver" from Crystal Reports. I am able to report on tables and queries but not stored procedures. I get the following error after I select the procedure and enter the parameter. Query Engine Error: '42000: Statement violates access rule: Connection is set to read only.' ...
6
4583
by: Al G | last post by:
Can someone tell me what I need to get connected to our AS400? I am trying to write an app in VS2005(Data source, Gridview) that requires data from files on our AS400. I've downloaded DB2, and installed it, but apparently I need an additional product, "DB Connect" to actually make a connection. "DB connect" says that it will only display...
1
9211
by: malooga | last post by:
Hello, I'm having a problem connecting to DB2 on a remote iSeries host from a Linux server, both of which reside on my company's internal network. I'm using the IBM Linux Client V9.1. When I try to connect to the remote host using a simple connect statement, DB2 hangs. The connection statement I'm using (I've obviously obscured the...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
5103
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4759
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3255
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3242
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
817
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
473
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.