book
                        
Article ID: KB0072195
                        
                    
                    
                        calendar_today
                        
Updated On: 
                    
                 
                
                        
                            
Description
                        
                        
                              A packaged query is published as a procedure and not as a view/table. Therefore running a SELECT statement against a procedure will not fetch the records and will result in an error, hence a procedure call needs to be made.   
                        
 
                     
                    
                    
                        
                            
                                
Environment
                            
                            
                                All supported environment
                            
                         
                        
                    
                    
                        
                            
                                
Resolution
                            
                            
                                  - The user needs to publish a packaged query in TIBCO Data Virtualization if the user wants to consume the packaged query from a third-party client like DbVisulizer which is a JDBC client tool.   
  - Once published, create a connection with the DbVisualizer to consume the resource.    
- Open a connection to the database created in the DbVisualizer and then go to the query editor and write the below command to access the published packaged query:      
 EXEC <packagedQuery>
     
       
                             
                         
                        
                    
                        
                            
                                
Issue/Introduction
                            
                            
                                This article states how to consume a published packaged query from a JDBC client tool like DbVisualizer.