Moving the tempdb database(SQL server)
Moving the tempdb database
tempdb files by using the ALTER DATABASE statement.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. |
Moving the tempdb database
tempdb files by using the ALTER DATABASE statement.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部落格 ” ,連結:http://blog.itpub.net/167898/viewspace-1002068/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 如何在SQL Server中最佳化TempdbSQLServer
- SQL Server database mail問題診斷一例SQLServerDatabaseAI
- [AlwaysOn] 建立SQL Server高可用性組T-SQL語法:DATABASE子句SQLServerDatabase
- SQL Database for Modern DevelopersSQLDatabaseDeveloper
- 網站報錯:“Database Server Error”網站DatabaseServerError
- sql serverSQLServer
- indexedDB替代Web SQL Database原因IndexWebSQLDatabase
- Moebius for SQL ServerSQLServer
- sql server 使用SQLServer
- SQL Server教程SQLServer
- moving window baseline
- 遷移Report Server DataBase時遇到的坑ServerDatabase
- SQL SERVER優化SQLServer優化
- Nodejs 操作 Sql ServerNodeJSSQLServer
- SQL Server 別名(as)SQLServer
- sql server遞迴SQLServer遞迴
- Sql server with as update用法SQLServer
- SQL Server下載SQLServer
- SQL Server Left joinSQLServer
- SQL Server SUBSTRING FunctionsSQLServerFunction
- SQL Server LEFT FunctionsSQLServerFunction
- SQL Server Unique ConstratintsSQLServer
- What is dbo in SQL Server?SQLServer
- ms sql server排序SQLServer排序
- SQL Server 替換SQLServer
- 【譯】 Types are moving to the right
- [20230110]sql profile run standby database.txtSQLDatabase
- SQL Server 2008中Analysis Services的新特性——深入SQL Server 2008SQLServer
- Sqlserver定位哪些物件和哪些會話哪些sql語句消耗了tempdbSQLServer物件會話
- SQL Server資料庫恢復,SQL Server資料恢復,SQL Server資料誤刪除恢復工具SQLRescueSQLServer資料庫資料恢復
- Sql_server基本操作SQLServer
- SQL SERVER 2008安全配置SQLServer
- SQL SERVER實用技巧SQLServer
- Microsoft SQL Server, Error: 15128 ()ROSSQLServerError
- SQL Server Management Studio (SSMS)SQLServerSSM
- High Availability (HA) in SQL ServerAISQLServer
- docker sql server安裝DockerSQLServer
- SQL Server 的死鎖SQLServer
- SQL Server 2019下載SQLServer