January 8, 2003 at 7:34 am
Hi,
Is it possible via the ALTER DATABASE command, to rename the logical file name of a specific database (and not the os file name) ?
Best regards,
Michael.
Best regards,
Michael.
January 8, 2003 at 8:15 am
To modify the logical name of a data file or log file, specify in NAME the logical file name to be renamed, and specify for NEWNAME the new logical name for the file.
Thus:
MODIFY FILE (NAME = logical_file_name, NEWNAME = new_logical_name...).
in ALTER DATABASE command.
January 8, 2003 at 8:19 am
Have a look in the BOL
The syntax is:
alter database YourDB modify file (name = OldLogicalName, Newname = NewLogicalName)
Bye
Gabor
January 8, 2003 at 8:34 am
Could we used this command in SQL7 SP3 ?
When I try it, I receive =>
'newname' is not a recognized CREATE/ALTER DATABASE option.
Best regards,
Michael.
January 8, 2003 at 8:37 am
ALTER DATABASE MODIFY FILE (NAME = logical_file_name, NEWNAME = new_logical_name...). is a SQL 2K thing, not sure of how to do that in 7
John Zacharkan
John Zacharkan
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply