-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathSet-HYDSQLTempDB.sql
More file actions
30 lines (25 loc) · 1.12 KB
/
Set-HYDSQLTempDB.sql
File metadata and controls
30 lines (25 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/************************************************************************************************************************
Created: 2015-03-01
Version: 1.1
Homepage: http://deploymentfundamentals.com
Disclaimer:
This script is provided "AS IS" with no warranties, confers no rights and
is not supported by the authors or DeploymentArtist.
Author - Johan Arwidmark
Twitter: @jarwidmark
Blog : http://deploymentresearch.com
************************************************************************************************************************/
Use master
ALTER DATABASE tempdb
MODIFY FILE (NAME = tempdev, FILENAME = 'G:\SQLTMP\tempdb.mdf',
SIZE = 4096MB,
MAXSIZE = 10240MB,
FILEGROWTH = 1024MB)
GO
ALTER DATABASE tempdb
ADD FILE (NAME = tempdev_2, FILENAME = 'G:\SQLTMP\tempdev_2.mdf', SIZE = 4096MB, MAXSIZE=10240MB, FILEGROWTH = 1024MB)
ALTER DATABASE tempdb
ADD FILE (NAME = tempdev_3, FILENAME = 'G:\SQLTMP\tempdev_3.mdf', SIZE = 4096MB, MAXSIZE=10240MB, FILEGROWTH = 1024MB)
ALTER DATABASE tempdb
ADD FILE (NAME = tempdev_4, FILENAME = 'G:\SQLTMP\tempdev_4.mdf', SIZE = 4096MB, MAXSIZE=10240MB, FILEGROWTH = 1024MB)
GO