Re: Use BiztalkUtilities adapters?
- From: "David Carroll" <dcarrdsp@xxxxxxxxx>
- Date: 21 Jul 2005 16:01:14 -0700
Eeeks... I didn't realize my replies would end up at the end of the
thread when I replied from a middle post. Anyway, I'm still not sure
if you are working with MYSQL or MS SQL Server. If you are working
with MS SQL Server and using the SQL Adapter that came with BizTalk,
you can use the following Stored Procedure.
NOTE 1: I'm assuming you are using the Northwinds Database installed in
SQL Server 2000.
NOTE 2: I'm also assuming you've added a bit column to the Customers
Table with a default of 0.
NOTE 3: The biggest difference in this stored proc from the one I
provided earlier is the FOR XML AUTO added to the final query.
CREATE PROCEDURE [dbo].[retriveNewCustomers] AS
DECLARE @l_PrimaryKey nchar(5)
Select @l_PrimaryKey=CustomerID From Customers Where IsPolled = 0 Order
By CustomerID
Select TOP 1 @l_PrimaryKey=CustomerID From Customers Where IsPolled = 0
Order By CustomerID
Update Customers Set IsPolled = 1 Where CustomerID=@l_PrimaryKey
Select CompanyName, ContactName From Customers Where
CustomerID=@l_PrimaryKey FOR XML AUTO
GO
If you are still having problems, please provide a complete description
of the environment you are working in.
Good Luck,
David Carroll
.
- References:
- Use BiztalkUtilities adapters?
- From: Luis Esteban Valencia
- Re: Use BiztalkUtilities adapters?
- From: David Carroll
- Re: Use BiztalkUtilities adapters?
- From: Luis Esteban Valencia
- Re: Use BiztalkUtilities adapters?
- From: David Carroll
- Use BiztalkUtilities adapters?
- Prev by Date: Cannot use a prefix with an empty namespace
- Next by Date: RE: tracking items in bulk in BAM --Urgen Please help
- Previous by thread: Re: Use BiztalkUtilities adapters?
- Next by thread: Problems after Generating schemas.
- Index(es):
Relevant Pages
|