I have a strange problem. I created a strongly typed DataSet and wanted to add a TableAdapter. I did the following steps:
- Add
TableAdapter - New Connection
2.1. Set the
DataSourceto .NET Framework-dataprovider for OLE DB 2.2. OLE DB-Provider:Microsoft Jet 4.0 OLE DB Provider2.2.1. Opened the datalink-properties of the provider 2.2.2. Put the folder of the dbf's as Databasename 2.2.3. Set the Extended Properties todBase IV2.2.4. Deleted the Username and set the option 'no password' 2.2.5. Tested the connection (successfully) 2.2.6. Closed the properties 2.3. Tested the connection again (successfully) 2.4. Clicked OK - Clicked Next
- VS asked me if I wanted to copy the file to my project and I clicked yes
- I should choose a
CommandType, but only one option was choosable: Use SQL commands, so I simply clicked next - I should use a SQL-command and used the generator to create a simple command where I made this:
SELECT DA_DARFOR, DA_LANGBZ FROM APDARFOR6.1. Under options I unchecked all of thisINSERT,UPDATEandDELETE-options, because I only needSELECT6.2. I clicked next - Because I will need the functions of the
DataTables, I let theDataTablefill option active, also the DataTable return-option (Fill and GetData), but I unchecked theGenerateDBDirectMethodsand clicked next afterwards. - I got the message that the
DataTableand theTableAdapterwere succesful configured. So I clicked on "Finish".
Then I get the following error-message(I hope I translated it correct): Error on adding the TableAdapters. Operation for this objecttype not supported.
I don't know what to do. How can I add the dbf(dBase IV)-File to my project, so I can use stongly typed datasets?
Ok, I found a solution. If one of you has the same problem: First create a connection under "server explorer" -> "dataconnections" -> "add" and afterwards you can create a dataset and pull the table from the serverexplorer to the dataset.