Re: Problem with Stored Procedure that conatins several select statements
- From: "Leonid Ganeline" <leo_gan_57@xxxxxxxxxxx>
- Date: Thu, 20 Sep 2007 11:06:39 -0700
If you test the stored procedures from the SQL Analyser, does it output the
schema as it should?
Seems it returns only one value.
--
Regards,
Leonid Ganeline [BizTalk MVP]
http://geekswithblogs.net/leonidganeline/
"Elias Goetz" <elias.goetz@xxxxxxxxxxxxxx> wrote in message
news:OKkbSN6%23HHA.4828@xxxxxxxxxxxxxxxxxxxxxxx
I created a stored procedure that gets a nvarchar value passed. With that
value I do two lookups against a database (on a linked server).
For example:
DECLARE @var1
SET @var 1 = (SELECT colX FROM SomeOtherTable WHERE colY = @passedValue)
At the end I insert the values (that I stored in temporary variables) into
a temporary table.
The select statement for the SQL Adapter looks like "SELECT col1, col2 TOP
1 FROM @temptable FOR XML AUTO, XMLDATA".
The Problem is that everytime I create a generated schema there is only
one element in the response node called "Success" and not the two columns
in the select statement. Now if I remove the queries I mentioned before
the final SELECT then the response elements are created as I expected.
Why does the schema generator behave this way? Is it possible to use
multiple select statements in a stored procedure where only one is used in
combination with "XML AUTO ..."?
Regards
Elias
.
- Follow-Ups:
- Re: Problem with Stored Procedure that conatins several select statements
- From: Elias Goetz
- Re: Problem with Stored Procedure that conatins several select statements
- From: Jan Eliasen
- Re: Problem with Stored Procedure that conatins several select statements
- References:
- Problem with Stored Procedure that conatins several select statements
- From: Elias Goetz
- Problem with Stored Procedure that conatins several select statements
- Prev by Date: Re: Automate Biztalk 2006 Business Rules Deployment
- Next by Date: Re: Access Destination Party from code
- Previous by thread: Problem with Stored Procedure that conatins several select statements
- Next by thread: Re: Problem with Stored Procedure that conatins several select statements
- Index(es):
Relevant Pages
|