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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|