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中tempdb的管理SQLServer
- SQL Server 2000 shrink tempdbSQLServer
- Monitoring Tempdb in SQL Server 2005SQLServer
- 如何在SQL Server中最佳化TempdbSQLServer
- 關於SQL Server tempdb 的各種操作SQLServer
- 深刻的教訓——SQL Server關於TempDB的使用SQLServer
- SQL Server 2008效能故障排查(四)——TempDBSQLServer
- sql server 檢視tempdb使用的相關檢視SQLServer
- SQL Server中的TempDB管理——TempDB基本知識(為什麼需要版本儲存區)SQLServer
- 認識SQL Server2000 tempdb資料庫SQLServer資料庫
- SQL Server中TempDB管理(version store的邏輯結構)SQLServer
- 在SQL Server tempdb滿時檢查資料檔案SQLServer
- SQL Server中TempDB管理(版本儲存區的一個example)SQLServer
- How to prevent blocking in your SQL Server databaseBloCSQLServerDatabase
- SQL SERVER – Attach mdf file without ldf file in DatabaseSQLServerDatabase
- SQL SERVER BACKUP DATABASE 加快備份速度方法SQLServerDatabase
- 認識SQL Server2000 Server Role 和 Database RoleSQLServerDatabase
- SQL Server 2005中的tempdb資料庫的一些特點SQLServer資料庫
- SQL Server database mail問題診斷一例SQLServerDatabaseAI
- [AlwaysOn] 建立SQL Server高可用性組T-SQL語法:DATABASE子句SQLServerDatabase
- Clone a database on the same serverDatabaseServer
- SQL Server Database 維護計劃建立完整的備份策略SQLServerDatabase
- Guide to Database Migration from Microsoft SQL Server using MySQL WorkbenchGUIIDEDatabaseROSServerMySql
- Lerning Entity Framework 6 ------ Handling concurrency With SQL Server DatabaseFrameworkSQLServerDatabase
- Tasks of a Database Administrator : Evaluate the Database Server Hardware (7)DatabaseServer
- RESTORE DATABASE is terminating abnormally. (Microsoft SQL Server, Error: 3154)RESTDatabaseORMROSSQLServerError
- Paging Records Using SQL Server 2005 Database - ROW_NUMBER FunctionSQLServerDatabaseFunction
- SQL Database for Modern DevelopersSQLDatabaseDeveloper
- SQL Database Maintenance WizardSQLDatabaseAINaN
- SQL in ORACLE and SQL ServerSQLOracleServer
- sql serverSQLServer
- 【譯】 Types are moving to the right
- SQL Server連線SQL Server、SQL Server連線ORACLE 連結伺服器SQLServerOracle伺服器
- 網站報錯:“Database Server Error”網站DatabaseServerError
- SQL Server常用工具——SQL Server Powershell ExtensionsSQLServer
- sql server with ...as 用法SQLServer
- SQL Server raiserrorSQLServerAIError
- SQL Server 鎖SQLServer