Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Database TEMPDB with multiple data files.


Database TEMPDB with multiple data files.

Author
Message
Jose Ianuck
Jose Ianuck
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 406
I created the TEMPDB01 and TEMPDB02, using this script;
(ALTER DATABASE tempdb
ADD FILE
(NAME = N'tempdb01',
FILENAME = N'D:\SqlServer_TempDB\tempdb01.ndf',
SIZE = 300MB,
MAXSIZE = 10000MB,
FILEGROWTH = 100MB) ,
--ALTER DATABASE tempdb
--ADD FILE
(NAME = N'tempdb02',
FILENAME = N'G:\SqlServer_TempDB\tempdb02.ndf',
SIZE = 300MB,
MAXSIZE = 10000MB,
FILEGROWTH = 100MB)
GO
When I see in Properties Database - tempdb, that´s ok, the logical name (D:\tempdb01 and G:\tempdb02), but after stop and start the services MSSQLSERVER, show me this error in SQL SERVER Logs ( CREATE FILE encountered operating system error 21(error not found) while attempting to open or create the physical file 'E:\TempDB_SqlServer\tempdb1.ndf'.) This is very strange, because I´ m not using E:\TempDB_SQLServer\tempdb1.ndf.
eccentricDBA
eccentricDBA
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1593 Visits: 1335
Jose Ianuck (8/13/2013)
I created the TEMPDB01 and TEMPDB02, using this script;
(ALTER DATABASE tempdb
ADD FILE
(NAME = N'tempdb01',
FILENAME = N'D:\SqlServer_TempDB\tempdb01.ndf',
SIZE = 300MB,
MAXSIZE = 10000MB,
FILEGROWTH = 100MB) ,
--ALTER DATABASE tempdb
--ADD FILE
(NAME = N'tempdb02',
FILENAME = N'G:\SqlServer_TempDB\tempdb02.ndf',
SIZE = 300MB,
MAXSIZE = 10000MB,
FILEGROWTH = 100MB)
GO
When I see in Properties Database - tempdb, that´s ok, the logical name (D:\tempdb01 and G:\tempdb02), but after stop and start the services MSSQLSERVER, show me this error in SQL SERVER Logs ( CREATE FILE encountered operating system error 21(error not found) while attempting to open or create the physical file 'E:\TempDB_SqlServer\tempdb1.ndf'.) This is very strange, because I´ m not using E:\TempDB_SQLServer\tempdb1.ndf.



Run the following to check the tempdb definition.
sp_helpdb @dbname='tempdb'



I'm assuming the instance is running.

If not you can get yourself up and running by following these steps:

http://blogs.xtivia.com/home/-/blogs/how-to-start-sql-server-if-you-lost-tempdb-data-files-
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search