Altering Column names

  • I have table Employee. It contains the columns : name, phone, addr1

    I would like to change the addr1 column to Address.

    How can I do this?

  • Look up sp_rename in BOL.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • sp_rename 'Employee.addr1', 'Address', 'COLUMN'

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply