Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming a table in a database
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00224160
Message ID:
00224221
Views:
24
>>>I'm trying to rename a table in a database. The RENAME TABLE command only modifies the alias in the database, but does not rename the file(s) on disk.
>>>
>>>The RENAME command does not work, and in fact creates an error.
>>>
>>>Does anyone know how to do this gracefully?
>>
>>Short of dropping the table from the .DBC, renaming it as a free table, and then readding it, rebuilding any views and relations using the new name, no. Stonefield Database Toolkit handles this neatly, but it's not free...
>
>See my post, the method works very well. But I should have added that making a backup, especially when you're first trying that method, is not a terrible idea :) Also you'll want to go into the table properties and update the DBC name, as well, to be in sync with the file name...

Thanks, but I'm an SDT sort-of-guy, and it's a whole lot easier!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform