Change name of a field

  • Thread starter Thread starter Rob
  • Start date Start date
R

Rob

Sorry for the simple nature of the question, but how does one
programmatically change the name of a field in a table? The MS ADO
Help pages are quite obscure and don't seem to answer this very basic
question...

Thanks in advance!
 
Rob said:
Sorry for the simple nature of the question, but how does one
programmatically change the name of a field in a table? The MS ADO
Help pages are quite obscure and don't seem to answer this very basic
question...
programmatically...not that I recall

you can use ALTER query to add
a column with new name

then run update query to transfer
values from old field to new field

then ALTER query to drop
old column

http://www.devguru.com/Technologies/jetsql/quickref/alter_table.html
 

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

Back
Top