Alter table syntax for Access 2000

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

Hi All

What is the sql syntax to alter a table name in Access 2000 using oledb and
VB net 2003

sql = "ALTER TABLE Base RENAME BaseTemp"

cmd.CommandText = sql

cmd.ExecuteNonQuery()

does not work (syntax error in Alter Table statement)



Regards

Steve
 
¤ Hi All
¤
¤ What is the sql syntax to alter a table name in Access 2000 using oledb and
¤ VB net 2003
¤
¤ sql = "ALTER TABLE Base RENAME BaseTemp"
¤
¤ cmd.CommandText = sql
¤
¤ cmd.ExecuteNonQuery()
¤
¤ does not work (syntax error in Alter Table statement)
¤

Access DDL doesn't support the ability to rename a table. You would need to use DAO or ADOX:


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Back
Top