By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,315 Members | 1,736 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,315 IT Pros & Developers. It's quick & easy.

calling stored procedure from Visual FoxPro database

P: n/a

I'm having problem calling stored procedures from Visual
FoxPro database. I got the following exception error:

"System.Data.OleDb.OleDbException: Unrecognized command

It seems like the stored procedures are not recognized
by .Net.
I'm using .Net framework 1.0 and VFP7.0.

Here is my code snipet:

Dim oConn As OleDbConnection = New OleDbConnection
Dim oCmd As OleDbCommand = New OleDbCommand()

oCmd.Connection = oConn
oCmd.CommandText = "generateID" 'calling stored procedure
oCmd.CommandType = CommandType.StoredProcedure


Dim oDR As OleDbDataReader
oDR = oCmd.ExecuteQuery()


Any help would be appreciated. Thanks in advance.
Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.