J
Jeronimo Bertran
Hi,
I am creating an order detail dataset for a particual order using a typed
dataset.
I created a stored procedure:
CREATE PROCEDURE SPOrderDetail
(
@OrderID int
)
AS
SELECT OD.ProductID, OD.UnitPrice,OD.Quantity, P.ProductName
FROM OrderDetails OD INNER JOIN Products P
ON OD.ProductID = P.ProductID
WHERE OD.OrderID =@OrderID
Now my question is if I can use this stored procedure to fill a typed
dataset that has tow distinct table (OrderDetails and Products) and defines
a relationship or do I have to create a typed dataset that holds all fields
from the SP on a single table?
Thanks,
Jeronimo Bertran
I am creating an order detail dataset for a particual order using a typed
dataset.
I created a stored procedure:
CREATE PROCEDURE SPOrderDetail
(
@OrderID int
)
AS
SELECT OD.ProductID, OD.UnitPrice,OD.Quantity, P.ProductName
FROM OrderDetails OD INNER JOIN Products P
ON OD.ProductID = P.ProductID
WHERE OD.OrderID =@OrderID
Now my question is if I can use this stored procedure to fill a typed
dataset that has tow distinct table (OrderDetails and Products) and defines
a relationship or do I have to create a typed dataset that holds all fields
from the SP on a single table?
Thanks,
Jeronimo Bertran