Larry,
>CREATE PROCEDURE dbo.GetOrderDetailByOrderID
>(
> @OrderID int
>)
>
>AS
> SELECT Discount,
> OrderID,
> ProductID,
> Quantity,
> UnitPrice
> FROM [Order Details]
> WHERE OrderID = @OrderID
> RETURN
This is correct...the code specified in the Jump Start should work just fine. What was the error you were getting in SQL Server when using the code specified in the Dev Guide? Did you remember to set the DefaultCommandType property to CommandType.StoredProcedure in ABusinessObject? Has it been inadvertently overridden in the constructor of your OrderDetail business object?
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com