CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 18

Threaded View

  1. #12
    Join Date
    Jul 2009
    Location
    Kuwait
    Posts
    170

    Re: INDEX a table in VB.NET

    This is the more specific error detail
    Code:
    ""Errors reported by ADO
    (1) Error#: -2147217900
    	Desc. : Command is missing required clause.
    	Source: Microsoft OLE DB Provider for Visual FoxPro
    	Native Error: 221
    	SQL State: 
    	Help Context: 0
    	Help File: 
    "
    what is wrong with
    Code:
              fcn.Execute("INDEX  on sale.dbf (Brand)")
    one more thing to add .
    I tried something like this
    Code:
    fcn.Execute("use sale.dbf; index on (price,brand) to prc")
    This didnt throw any error or exception. But i am expecting a .cdx file named prc.cdx to be generated. But that is not happening. So i am not able to verify whether the indexing has happened or not.
    Last edited by makdu; November 24th, 2009 at 12:41 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured