Hi,
I am using Unidac to connect to Microsoft Access database.
why UniConnection1.StartTransaction always raise an error with message
"[Microsoft] [ODBC Microsoft Access Driver] Attribute cannot be set now'
StartTransaction raise EODBCError
Re: StartTransaction raise EODBCError
I find out that if I set indexfieldnames value to any fieldname, the error message not raises anymore, is it the problem solver ?hendrang wrote:Hi,
I am using Unidac to connect to Microsoft Access database.
why UniConnection1.StartTransaction always raise an error with message
"[Microsoft] [ODBC Microsoft Access Driver] Attribute cannot be set now'
Hi Plash,tobias_cd wrote:Plash,Plash wrote:We'll change the default value of FetchAll to True in the next UniDAC build.
please only change the default for the Access provider if necessary, not Oracle or SQL Server which would cause huge problems with existing code dependent on that behavior, thank you.
Regards,
Tobias
Thanks for reply.
It is strange that after I set fetchAll to true, I run the application, and then I set fetchAll to false, my application run smoothly. even now if I create new application without set fetchall to true, the error message does not raise anymore. Its really happen.

I don't like the idea to set fetchAll to true either because it will be performance problem.
Yes sir, The error raises again if I test with larger data. That mean I could not avoid set fetchall to true.Plash wrote:Dataset can be fully fetched even if FetchAll = False. This can occur in the following cases:
- records count is less than a value of the FetchRows property;
- you manually scroll the dataset to the end;
- the IndexFieldsNames property is set.

Thanks for your info.