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
DataSource
to .NET Framework-dataprovider for OLE DB 2.2. OLE DB-Provider:Microsoft Jet 4.0 OLE DB Provider
2.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 IV
2.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 APDARFOR
6.1. Under options I unchecked all of thisINSERT
,UPDATE
andDELETE
-options, because I only needSELECT
6.2. I clicked next - Because I will need the functions of the
DataTables
, I let theDataTable
fill option active, also the DataTable return-option (Fill and GetData), but I unchecked theGenerateDBDirectMethods
and clicked next afterwards. - I got the message that the
DataTable
and theTableAdapter
were 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?