Hi,
I want to create an index on my table. I used the following commandNow I want to use this. Is there a file created with some extension when i do an Indexing? .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()
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?




Reply With Quote
