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

Threaded View

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

    [RESOLVED] INDEX a table in VB.NET

    Hi,
    I want to create an index on my table. I used the following command
    Code:
     
    cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\database.mdb;Persist Security Info=False")
            cn.Open()
    cmd = New OleDbCommand("Create INDEX itmno_idx ON INVENT (ITEM_NO)", cn)
     cmd.ExecuteNonQuery()
    Now I want to use this. Is there a file created with some extension when i do an Indexing? .
    Is the above statment actually index the field, ITEM_NO or do i have to use ALTER TABLE command?
    Currently I am getting error "Cannot execute data definition statements on linked data sources" Any idea?
    Last edited by makdu; September 3rd, 2009 at 07:00 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