I'm making a program in Java with a MS Access database. An adapted snipped of my program
Statement s;
String[] tabinfo = {"Albara", "TBala"};
s.execute("ALTER TABLE " + tabinfo[0] + " ALTER COLUMN " +
tabinfo[1] + " SET DEFAULT 0 ");
What I get is an SqlException: ALTER TABLE syntax error
. What I'm doing wrong? I have full rights of the file. The table and columns names are right as the names are extracted from the database metadata and I'm not modifying system tables.
It's a program to modify a db of my own that is used by a program that I made several years ago so changing the db is out of the question. Also out of the question is the use of Java, my clients computer won't install .Net framework 3.5 and I'm not going there to do informatics maintenance.