The code example is take from the Sql Server help. Is very easy convert it to VFP, so you can use that in VFP with not problems. You must read the help topic "Building Sql Server Aplications\Sql-DMO" in the Books online.
I don't kno how create a DSN. But if you use ADO you not need it. Also, with the Sql DMO objects not need it because this use native connection to Sql Server.
P.D. Hablas en español??? Respondo en ingles debido al foro....
The Life is Beautiful!
Programmer in
Delphi, VS.NET
MCP