Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql - rename table and also delete table

Status
Not open for further replies.

leonepaolo

Programmer
May 28, 2001
82
CA
Hi,

I'm trying to use SQL to rename a table - here's what I've done so far and it's not working.

db.Execute "SELECT * RENAME " & strTableToRename & " TO " & strNewTableName

I'd also like to know how to delete a table.

Thank you,
Paolo
 
To rename:
EXEC sp_rename 'customers', 'custs'

to Delete:
drop tableName
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top