| 1. | Determine the logical file names for the tempdb database by using sp_helpfile as follows:use tempdbThe logical name for each file is contained in the name column. This example uses the default file names of tempdev and templog. |
| 2. | Use the ALTER DATABASE statement, specifying the logical
file name as follows:use masterYou should receive the following messages that confirm the change:
Message 1
Message 2 |
| 3. | Using sp_helpfile in tempdb will not confirm these changes until you restart SQL Server. |
| 4. | Stop and then restart SQL Server. |
| 1. | Determine the logical file names for the tempdb database by using sp_helpfile as follows:use tempdbThe logical name for each file is contained in the name column. This example uses the default file names of tempdev and templog. |
| 2. | Use the ALTER DATABASE statement, specifying the logical
file name as follows:use masterYou should receive the following messages that confirm the change:
Message 1
Message 2 |
| 3. | Using sp_helpfile in tempdb will not confirm these changes until you restart SQL Server. |
| 4. | Stop and then restart SQL Server. |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/167898/viewspace-1002068/ ,如需转载,请注明出处,否则将追究法律责任。