Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Anthony R Charles
Starting Member
2 Posts |
Posted - 2007-08-23 : 06:40:11
|
I am trying to query a database table on our AS400 using query analyzer (SQL Server 2000). This table contains members (about 10 of them). If I use the query module from the AS400 Client Access application, I can retrieve the data by using the select statement:SELECT * FROM LIBRARY1.TABLE1(MEMBER1) for instance.Using UNION commmands, I am able to retrieve all the data.But from Query Analyzer, I can't think of the equivalent statement that would give me the same data.If I .. SELECT * FROM LIBRARY1.TABLE1 - no rows are returned.And I get an error if I try to use:SELECT * FROM LIBRARY1.TABLE1(MEMBER1)Can anyone help me with the correct syntax for this QA statement please? |
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2007-08-23 : 07:49:22
|
I think I can point you in the right direction, but am not sure how to completely answer your question. You need to add the AS400 as a linked server, then you can reference that in your select statement.Jim |
 |
|
Anthony R Charles
Starting Member
2 Posts |
Posted - 2007-08-23 : 22:50:06
|
Thanks Jim,But I already had the Linked Server set up. So that's not the problem here. I can retrieve data successfully (using QA) for all other tables in the AS400 libraries, except this particular one that contains members. |
 |
|
|
|
|