Stonefield Query
 
Stonefield Site Map
Stonefield Support

  Overview
  Submit Support Ticket
  Forums
  Online Help Files
  Services
  Pre-Sales Support
Online Webinars
Video Demonstrations
Feature Requests
  Software Maintenance
  Support Testimonials
  FAQ's
Quick Links
Buy Now!
Download Free Trial
Watch a Video
Contact Us

 
 You are here: Support * Support Forums   Search

 Stonefield Query Support Forum

Welcome to the Stonefield Query Support Forum. Please note that in order to participate in the support forums, registration at our site is required. If you are already a member of our site, please sign-in.

 

Subject: Creating Report using Multiple Stored Procedure as DataSource

You are not authorized to post a reply.   

Author Messages
turash
Posts:3

05/14/2008 2:01 PM Alert 

Based on the feedback  on this forum "how to use stored procedure" using Stonefield SDK. I had created the report using virtual table / stored procedure approach works fine.

when I need data from two stored procedure this apprach is not working.

I have created two virtual table and their scripts call individual stored procedure.

Error message “The query failed, Alias “zzx” is not found.

What is the correct approach for  this kind of scenario?

Thanks in advance

Tushar

 

 

Chris Wolf
Posts:217

05/14/2008 2:24 PM Alert 
If you can, please post the text of these two scripts so that we may examine them.

- Chris Wolf
Stonefield Software Inc.
turash
Posts:3

05/14/2008 2:36 PM Alert 

there are two stored prcedure created

jnk - which displays current date

jnk1- which diplays the current version of sql server

created two virtual tables

jnk and jnkversion

following are their respective scripts

jnk.select

function Main(SQApplication, Database, SelectStatement, CursorName)
' create a result set into XML
Main = XMLResults
Main = Database.ExecuteSQLStatement("exec [jnk]")
end function

jnkversion.select

function Main(SQApplication, Database, SelectStatement, CursorName)
' create a result set into XML
Main = XMLResults
Main = Database.ExecuteSQLStatement("exec [jnk1]")
end function

both stored proc through virtual table runs fine individually.

but combined report results into error

You are not authorized to post a reply.
Forums > Stonefield Query SDK > General Support > Creating Report using Multiple Stored Procedure as DataSource



ActiveForums 3.6

 
 
   Privacy Statement  |  Terms Of Use
© 1996-2008 Stonefield Software Inc. All rights reserved.