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  dBforums > Database Server Software > DB2 > DB2 views

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-07-03, 06:54
RudiVdm RudiVdm is offline
Registered User
 
Join Date: Sep 2003
Posts: 17
DB2 views

Does anyone know how to see DB2 views through a linked server on SQL Server?

I have an ODBC driver that let's me see the AS400, but once I've got a linked server, I can only see the tables and not the views.
Reply With Quote
  #2 (permalink)  
Old 10-07-03, 07:23
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
If you issue an SQL select statement using the view name it will work fine. You are just looking at a list of tables on sysibm.systables (or whatever DB2/400 calls it). Try to write a query and list the contents of sysibm.sysviews (look in the SQL Reference for the exact name of the catalog table that has views in DB2/400).
Reply With Quote
  #3 (permalink)  
Old 10-07-03, 07:34
RudiVdm RudiVdm is offline
Registered User
 
Join Date: Sep 2003
Posts: 17
Thanks

Thanks alot. Was getting worried about that. Views working fine through Query Analyzer. Case Sensitivity a bit of a schlep though.
Reply With Quote
  #4 (permalink)  
Old 10-07-03, 14:08
achiola achiola is offline
Registered User
 
Join Date: May 2002
Location: General Deheza, Cba, Arg.
Posts: 273
Hi Marcus/RudiVdm

I have a AS/400 V5R2M0 federated in a DB2 V8fp3.
I can recovery the code of a view (logical view) of the AS/400?

Can explain to me how?

Thanks.
Abel.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On