Alter table sintax for DEFAULT constraint?

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
 
C

Cesar Ronchese

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top