Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP set statements
Message
 
To
05/02/2003 07:51:54
Geert Van Snik
Zorgned Automatisering Bv
Wageningen, Netherlands
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00749295
Message ID:
00749455
Views:
24
You can use SET statements in ADO.NET. I would check your VFP code to make sure it is working correctly. Run the stored procedure followed by your select statement in a prg.

>Dear ut-user,
>
>I would like to know if it is possible to run VFP set statements (set exact on, set ansi on) via the ADO.NET command object. I have made an attempt, but no luck, alas.
>
>What am I doing wrong here?
>
>myCon.ConnectionString = CFH.getConnectionString(); // external helper.
>string sql = "runsetstatements()"; // vfp storedproc that executes.
>OleDbCommand myCom = new OleDbCommand(sql,myCon);
>myCon.Open();
>myCom.ExecuteNonQuery();
>sql = "SELECT * FROM zorglevr WHERE zoeknaam='B'";
>myCom.CommandText = sql;
>myRdr = myCom.ExecuteReader(CommandBehavior.CloseConnection);
>
>The reader keeps returning results that it shouldn't accourding to the set statements. Perhaps, my approach is just totally wrong.
>
>Thanks for giving attention to my problem.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform