Excel DB: Operation must use an updateable query

前端 未结 2 2109
南旧
南旧 2020-12-22 04:03

for a jdbc program, im required to make a connection an excel database. the connection is successfully made but wen entering values into it, its giving an \"Operation must u

相关标签:
2条回答
  • 2020-12-22 04:23

    Did you specifically state that the connection was readwrite in your connection string?

    I am not familiar with JDBC, but ODBC would be:

    "Driver={Microsoft Excel Driver (*.xls)};" & _
    "DBQ=C:\MyFolder\MyWorkbook.xls; ReadOnly=False;"
    

    Excel is read-only by default: http://support.microsoft.com/kb/257819

    0 讨论(0)
  • 2020-12-22 04:26

    It was just needed to uncheck the read only while creating the DSN.

    0 讨论(0)
提交回复
热议问题