Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store Proc To Export MS SQL Data In FoxPro DBF
Message
From
09/02/2010 22:35:48
 
 
To
09/02/2010 04:50:26
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01448303
Message ID:
01448490
Views:
41
Ryan,

You could do it in a two-step process depending on your version of SQL Server. If 2005 or later from the Stored Proc side:

DECLARE @foo XML;
SET @foo = (SELECT * FROM mytable FOR XML AUTO, TYPE)
RETURN @foo

SQLEXEC this from VFP and then use XMLtoCursor to consume it into a table to slice and dice. I don't have access to either VFP or SQL Server as I write this and YMMV,


>Dear all,
>
> is't possible to create a Store Proc To Export MS SQL Data In FoxPro DBF, if it's possible then how?
>
>Thanks,
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform