Alter table sintax for DEFAULT constraint?

  • Thread starter Thread starter Cesar Ronchese
  • Start date Start date
C

Cesar Ronchese

Hello all.

I would like to know if is possible to create a ALTER TABLE script it
inserts a default value in a given field, for Microsoft Access databases.

Someone know?

[]s
Cesar
 
Because is a update to run in some databases distributed in many customers,
and they don't know how change the database (and, very preferrable, they
shouldn't open the database with MS Access).

Anyways, I found the manner:

ALTER TABLE tablename
ALTER COLUMN columname INT NULL DEFAULT 0

It works only using JET/ADO, not in Access query editor.


[]s
Cesar




Why not just open the table in design view and change the property?
 
Back
Top