A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Linked servers



 
 
Thread Tools Display Modes
  #1  
Old April 9th, 2010, 05:44 PM posted to microsoft.public.access.tablesdbdesign
DrEvil
external usenet poster
 
Posts: 15
Default Linked servers

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
  #2  
Old April 11th, 2010, 07:25 PM posted to microsoft.public.access.tablesdbdesign
Armen Stein[_2_]
external usenet poster
 
Posts: 157
Default Linked servers

On Fri, 9 Apr 2010 09:44:03 -0700, DrEvil
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

  #3  
Old April 12th, 2010, 03:32 PM posted to microsoft.public.access.tablesdbdesign
DrEvil
external usenet poster
 
Posts: 15
Default Linked servers

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
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

.

  #4  
Old April 13th, 2010, 06:29 PM posted to microsoft.public.access.tablesdbdesign
Armen Stein[_2_]
external usenet poster
 
Posts: 157
Default Linked servers

On Mon, 12 Apr 2010 07:32:01 -0700, DrEvil
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

  #5  
Old April 19th, 2010, 04:22 PM posted to microsoft.public.access.tablesdbdesign
DrEvil
external usenet poster
 
Posts: 15
Default Linked servers

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
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

.

  #6  
Old April 19th, 2010, 09:54 PM posted to microsoft.public.access.tablesdbdesign
DrEvil
external usenet poster
 
Posts: 15
Default Linked servers

I got this done using pass-through query, I'm now able to retrieve data from
DB2 and speed seems good. My pass-through query looks like this:

SELECT *
FROM OPENQUERY(TSTESA5, 'SELECT * FROM DON1.ETAX_W2')
where W2_FIDN = '68052889600'

TSTESA5 is the linked server name
ETAX_W2 is the table
W2_FIDN is column


Amir



"Armen Stein" wrote:

On Mon, 12 Apr 2010 07:32:01 -0700, DrEvil
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

.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.