Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting XML from SQL Server
Message
From
24/09/2003 09:56:58
 
 
To
24/09/2003 09:41:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00831714
Message ID:
00831814
Views:
22
>Bob,
>I have done that before :) If you need evidence a simple one :
>
>
>CREATE PROCEDURE Cusdetails @cCustomerID nchar(5) AS
>SELECT Customers.CustomerID, ContactName, CompanyName,
>       Orders.OrderID, OrderDate
>FROM Customers, Orders
>WHERE Customers.CustomerID = Orders.CustomerID
>AND Customers.CustomerID = @cCustomerID
>ORDER BY Orders.OrderID
>FOR XML AUTO
>GO
>
>
>lnHandle = ...
>m.customerID = 'BONAP'
>SQLExec(lnHandle, 'Exec CusDetails ?customerID','SPResult')
>
Returns just one row with one field.
>Cetin

Ok... well, you are only getting one record, and it may all fit into on field in one row. Take out the AND so you get ALL records and see what you get.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform