From: DrEvil on
Good morning,
I'm looking for some direction in creating new Ms Access database that would
have linked tables to MSSQL 2005 ent. and in addition would be able to take
advantage of DB2 database that is linked in MSSQL. What I would like to do is
look up some values in linked DB2 tables while user is creating record in
MSSQL to validate it and then at the end of the batch(bunch of related
records) I would "push" that batch to temporary processing table on Mainframe
where DB2 folks would do something with these batches/records and send me a
response back. I have created linked server to DB2 using IBM OLE DB provider
for DB2 (IBMDADB2) and that is working, what I'm not sure of doing is linking
DB2 tables in MS Access DB.
I'm trying to all this in order to avoid installing DB2 Connect software on
each machine and configuring it on each machine that would need to use this
database. I would rather that server that has MSSQL talks to Mainframe
instead each individual computer.
I hope I explained it well... also if MS Access wouldn't be able to do this
please let me know if VB would.

Thanks

Amir
From: Armen Stein on
On Fri, 9 Apr 2010 09:44:03 -0700, DrEvil
<DrEvil(a)discussions.microsoft.com> wrote:

> I have created linked server to DB2 using IBM OLE DB provider
>for DB2 (IBMDADB2) and that is working, what I'm not sure of doing is linking
>DB2 tables in MS Access DB.

Have you tried linking to the linked-DB2 tables in SQL Server? I
don't think Access would know the difference.

Armen Stein
Microsoft Access MVP
www.JStreetTech.com

From: DrEvil on
Morning,
Thanks for replying Armen.
I'm not sure how to set-up ODBC connection to MSSQL 2005 ent. to show linked
server tables... I cannot select it from Default Database option under MSSQL
Native driver, maybe using Attach Database filename option can be utilized
for this?
Once I can get those DB2 tables to link in MS Access then its downhill from
there.

Thanks

Amir

"Armen Stein" wrote:

> On Fri, 9 Apr 2010 09:44:03 -0700, DrEvil
> <DrEvil(a)discussions.microsoft.com> wrote:
>
> > I have created linked server to DB2 using IBM OLE DB provider
> >for DB2 (IBMDADB2) and that is working, what I'm not sure of doing is linking
> >DB2 tables in MS Access DB.
>
> Have you tried linking to the linked-DB2 tables in SQL Server? I
> don't think Access would know the difference.
>
> Armen Stein
> Microsoft Access MVP
> www.JStreetTech.com
>
> .
>
From: Armen Stein on
On Mon, 12 Apr 2010 07:32:01 -0700, DrEvil
<DrEvil(a)discussions.microsoft.com> wrote:

>I'm not sure how to set-up ODBC connection to MSSQL 2005 ent. to show linked
>server tables

So you're saying you can link to normal SQL tables from Access, but
you can't see the linked SQL tables in the same database? I don't
understand. Maybe someone else can clarify why this wouldn't work.

Another approach is to build SQL views on the remote DB2 tables and
link to those from Access instead...

Armen Stein
Microsoft Access MVP
www.JStreetTech.com

From: DrEvil on
You are correct, I cannot seem to find DB2 linked tables in the list. I was
going to try passthrough query, maybe that would work.

I'll take a look at the SQL views also.

Thanks


Amir

"Armen Stein" wrote:

> On Mon, 12 Apr 2010 07:32:01 -0700, DrEvil
> <DrEvil(a)discussions.microsoft.com> wrote:
>
> >I'm not sure how to set-up ODBC connection to MSSQL 2005 ent. to show linked
> >server tables
>
> So you're saying you can link to normal SQL tables from Access, but
> you can't see the linked SQL tables in the same database? I don't
> understand. Maybe someone else can clarify why this wouldn't work.
>
> Another approach is to build SQL views on the remote DB2 tables and
> link to those from Access instead...
>
> Armen Stein
> Microsoft Access MVP
> www.JStreetTech.com
>
> .
>