Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Biztalk
Biztalk General discussion about Biztalk server.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Biztalk section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 14th, 2007, 01:18 PM
Authorized User
Join Date: Aug 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default using two-way sql adapter to insert into 2 tables?


I am trying to test a stored procedure in my sql adapter that inserts records and then returns a xml page showing what records were inserted. I first tried with just inserting the records and that worked fine, but when I add the select statement and changed the sql adapter to a request/response I got the error:
Streaming not supported over multiple column result.
I would appreciate any help!!!

here is my stored procedure:

CREATE PROCEDURE sp_UpdateTestPricelist

 --UpdateArticle table
 @SupplierArticleGUID uniqueidentifier='{00000000-0000-0000-0000-000000000000}',
 @SupplierGUID uniqueidentifier='{00000000-0000-0000-0000-000000000000}',
 @SupplierArticleDescription nvarchar(150)='sugar',
 @SupplierArticleNumber nvarchar(50)='4711',
 @EAN nvarchar(50)='',
 @VatKeyValue int=16,
 --UpdateArticlePrice table
 @SupplierArticlePriceGUID uniqueidentifier='{00000000-0000-0000-0000-000000000000}',
 --@SupplierArticleGUID uniqueidentifier,
 @ValidFrom datetime='',
 @ValidTo datetime='',
 @UnitOfMeasurement nvarchar(50)='kg',
 @LotType uniqueidentifier='{00000000-0000-0000-0000-000000000000}',
 @LotSize decimal(6,2)=1,
 @GrossWeight decimal(6,2)=0.0,
 @NetWeight decimal(6,2)=0.0,
 @UnitPrimeCost decimal(6,2)=0.0,
 @LotPrimeCost decimal(6,2)=0.0,
 @Currency nvarchar(50)='EUR'

 DECLARE @ImportDate int

 SET @ImportDate = year(getdate()) * 10000 + month(getdate()) * 100 + day(getdate())

 DELETE FROM UpdateArticlePrice WHERE SupplierArticleGUID IN (SELECT SupplierArticleGUID FROM UpdateArticle WHERE ImportDate <> @ImportDate AND SupplierGUID = @SupplierGUID)
 DELETE FROM UpdateArticle WHERE ImportDate <> @ImportDate AND SupplierGUID = @SupplierGUID

  SET @SupplierArticleGUID = newid()
  SET @SupplierArticlePriceGUID = newid()
  INSERT INTO UpdateArticle

  insert into UpdateArticlePrice

 SELECT * FROM UpdateArticle UA, UpdateArticlePrice UAP
 WHERE UA.SupplierArticleGUID=UAP.SupplierArticleGUID
  AND UA.SupplierGUID=@SupplierGUID
 --for xml auto, xmldata

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL table Adapter kalas Visual Basic 2005 Basics 5 September 18th, 2008 04:21 AM
Creating an INSERT INTO SQL statement for 2 tables sburgess Access 1 April 18th, 2007 08:52 AM
Sql statements in data adapter Raif ASP.NET 1.0 and 1.1 Basics 1 July 14th, 2004 08:50 AM
Adapter for SQL erisa Biztalk 3 February 25th, 2004 09:28 AM
SQL Data Adapter jbenson001 ASP.NET 1.x and 2.0 Application Design 6 December 18th, 2003 12:13 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.