473,378 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

AS400 connection AGAIN....

FIRST OF ALL, I APPRECIATE PEOPLE SENDIUNG ME LINKS TO WEB SITES FOR
CONNECTION STRINGS BUT AS I'VE SAID BEFORE THAT IS NOT WHAT I NEED. I CAN
EASILY OPEN AN ADO CONNECTION OBJECT TO AS400. I NEED TO REFRESH A DAO
(Access) TABLEDEF OBJECT'S CONNECTION STRING WHICH MUST INCLUDE A CLAUSE FOR
THE TABLE NAME. THIS IS WHAT I NEED. PLEASE READ AGAIN.

Can someonne please tell me an ADO connection string to use to link an AS400
table to Access WITHOUT using a DSN? I want to use:

currentdb.tabledefs(td).connect = sConnectionString
currentdb.tabledefs(td).RefreshLink

or if I must:

docmd.transfer database....

I CAN ALREADY CREATE AN ADO CONNECTION. THE WEB SITES PEOPLE ARE SUGGESTING
ONLY GIVE CONNECTION STRINGS NOT A STRING I CAN USE FOR A TABLEDEF.

Thank you.

Matthew Wells
MW****@FirstByte.net
Nov 13 '05 #1
4 5057
The first link below should do the trick for you...

http://members.rogers.com/douglas.j....LessLinks.html

ODBC DSN-Less Connection Tutorial Part I
http://www.amazecreations.com/datafa...m&Article=true

HOWTO: Use "DSN-Less" ODBC Connections with RDO and DAO
http://support.microsoft.com/?id=147875

ODBC DSN Less
http://www.able-consulting.com/MDAC/...BC_DSNLess.htm
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
Nov 13 '05 #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Using ADO usually means connection w/ the OLE DB connection. A TableDef
uses ODBC connection strings.

I've had trouble using ODBC DSN-less connection strings with AS400s.
Never could get the system name to be recognized. Perhaps it was the
system I was trying to connect to.

Here is a format for an AS400, ODBC connection for a TableDef (all one
line):

ODBC;Driver={Client Access ODBC Driver (32-bit)};
System=my_system_name;Uid=myUserName;Pwd=myPwd

The Table Name parameter is not needed when you reset the connection
string for a TableDef; it will be automatically added to the string when
you reset it.

The driver "Client Access ODBC Driver (32-bit)" must be in the ODBC
Administration, Drivers window.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQlrOK4echKqOuFEgEQLocACdFv80nAFWwoVR/yIGPNcNhb90t+EAnjcq
/1pJ1hsH9qb21jsEg6Ur/fga
=eX0v
-----END PGP SIGNATURE-----
Matthew Wells wrote:
FIRST OF ALL, I APPRECIATE PEOPLE SENDIUNG ME LINKS TO WEB SITES FOR
CONNECTION STRINGS BUT AS I'VE SAID BEFORE THAT IS NOT WHAT I NEED. I CAN
EASILY OPEN AN ADO CONNECTION OBJECT TO AS400. I NEED TO REFRESH A DAO
(Access) TABLEDEF OBJECT'S CONNECTION STRING WHICH MUST INCLUDE A CLAUSE FOR
THE TABLE NAME. THIS IS WHAT I NEED. PLEASE READ AGAIN.

Can someonne please tell me an ADO connection string to use to link an AS400
table to Access WITHOUT using a DSN? I want to use:

currentdb.tabledefs(td).connect = sConnectionString
currentdb.tabledefs(td).RefreshLink

or if I must:

docmd.transfer database....

I CAN ALREADY CREATE AN ADO CONNECTION. THE WEB SITES PEOPLE ARE SUGGESTING
ONLY GIVE CONNECTION STRINGS NOT A STRING I CAN USE FOR A TABLEDEF.

Nov 13 '05 #3
That is the string I've found, but it doesn't work. I keep getting

Reserved error (-7778); there is no message for this error.

any ideas?

Matthew Wells
MW****@FirsByte.net

"MGFoster" <me@privacy.com> wrote in message
news:e7*****************@newsread2.news.pas.earthl ink.net...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Using ADO usually means connection w/ the OLE DB connection. A TableDef
uses ODBC connection strings.

I've had trouble using ODBC DSN-less connection strings with AS400s.
Never could get the system name to be recognized. Perhaps it was the
system I was trying to connect to.

Here is a format for an AS400, ODBC connection for a TableDef (all one
line):

ODBC;Driver={Client Access ODBC Driver (32-bit)};
System=my_system_name;Uid=myUserName;Pwd=myPwd

The Table Name parameter is not needed when you reset the connection
string for a TableDef; it will be automatically added to the string when
you reset it.

The driver "Client Access ODBC Driver (32-bit)" must be in the ODBC
Administration, Drivers window.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQlrOK4echKqOuFEgEQLocACdFv80nAFWwoVR/yIGPNcNhb90t+EAnjcq
/1pJ1hsH9qb21jsEg6Ur/fga
=eX0v
-----END PGP SIGNATURE-----
Matthew Wells wrote:
FIRST OF ALL, I APPRECIATE PEOPLE SENDIUNG ME LINKS TO WEB SITES FOR
CONNECTION STRINGS BUT AS I'VE SAID BEFORE THAT IS NOT WHAT I NEED. I CAN EASILY OPEN AN ADO CONNECTION OBJECT TO AS400. I NEED TO REFRESH A DAO
(Access) TABLEDEF OBJECT'S CONNECTION STRING WHICH MUST INCLUDE A CLAUSE FOR THE TABLE NAME. THIS IS WHAT I NEED. PLEASE READ AGAIN.

Can someonne please tell me an ADO connection string to use to link an AS400 table to Access WITHOUT using a DSN? I want to use:

currentdb.tabledefs(td).connect = sConnectionString
currentdb.tabledefs(td).RefreshLink

or if I must:

docmd.transfer database....

I CAN ALREADY CREATE AN ADO CONNECTION. THE WEB SITES PEOPLE ARE SUGGESTING ONLY GIVE CONNECTION STRINGS NOT A STRING I CAN USE FOR A TABLEDEF.

Nov 13 '05 #4
"ODBC;DRIVER={Client Access ODBC Driver
(32-bit)};DESC=QGPL;SORTTABLE=;LANGUAGEID=ENU;XLATEDLL =;DFTPKGLIB=QGPL;SYSTEM=192.168.104.22;FILEDSN=XX; ;TABLE=QGPL.A"

U NEED TO CHANGE [SYSTEM] & [TABLE]
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: fn | last post by:
Can anyone help me understand what it takes to define a Linked Server connection to an IBM eSeries (AS400)? Do I need Microsoft's SNA Server or some other product or can I simply do it with the...
2
by: Niyazi | last post by:
Hi, I have to retrieve a data from AS400 DB2 and after working with data I have to export into one of existing Excel file. I can connect into specific library in AS400 DB2 using AS400...
0
by: alan_sec | last post by:
Hi. Does the com.ibm.as400.access.AS400JDBCDriver driver that is part of JTOpen (http://jt400.sourceforge.net) works with db2 udb version 7 that is installed on windows 2000? I' m trying to...
1
by: Matthew Wells | last post by:
Can someonne please tell me an ADO connection string to use to link an AS400 table to Access WITHOUT using a DSN? I want to use: currentdb.tabledefs(td).connect = sConnectionString...
13
by: Sehboo | last post by:
Hello, we have data sitting on AS400 (V4R5M0) - DB2-400. I need to access that from my vb.net application. I don't know anything about AS400. Is it possible to get data from tables and stored...
14
by: Brad Allison | last post by:
Sorry to repeat myself if this is the same question I asked in the past, but I have finally made a connection to our AS400 through ODBC. I tried to get the connection using the data connection...
4
by: Brad Allison | last post by:
I posted this to the adonet newsgroup and was recommended to post here. Thank you for any help: Okay, I need a bit of advice. I have an ODBC data adapter being filled by AS400 which is very...
6
by: MadMan2004 | last post by:
Hello all! I'm having a problem with a project I'm working on and I'd like to ask for anyone's input that might be helpful. I'm building a rather large front-end application connecting to an...
0
by: John | last post by:
We are doing integration with an AS400 running websphere - webservices. When the customer (AS400) calls the .Net webservice the customers java code (every other request or so) throws the following...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.