VB.NET

Moderators: seancampbell
Number of threads: 4022
Number of posts: 10035

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Index foxpro table using VB.NET Posted by makdu on 12 Sept 2009 at 11:49 PM
Hi,
I have a visual foxpro table. I want to index the table from vb.net and use that indexed table for the application.

I want to achieve the same result in vb.net which is obtained from foxpro.

In foxpro, the commands used are

use invent
index on item_no to itmnoThe equivalent i tried to use in vb.net is

cn = New System.Data.OleDb.OleDbConnection("Provider=VFPOLEDB.1;Data Source=D:\atitest;Persist Security Info=False")
 cn.Open()
Dim Query1 As String = "use INVENT"
 Dim Query2 As String = "index on item tag itemindx"
 Dim Cmd1 As OleDbCommand = New OleDbCommand(Query1, cn)
Dim Cmd2 As OleDbCommand = New OleDbCommand(Query2, cn)
 Cmd1.ExecuteNonQuery()
Cmd2.ExecuteNonQuery()I am getting exception in Cmd2.ExecuteNonQuery() 


[HTML]
One or more errors occurred during processing of command[/html]



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.