BUG: A Foreign Key Table with Data in Tempdb Creates Error 1105ID: Q229726
|
Creating a composite foreign key on a table that already contains data may fail with the following error:
Error: 1105, Severity: 17, State: 2
Could not allocate space for object '(SYSTEM table id: -669903346)' in database 'TEMPDB' because the 'DEFAULT' filegroup is full.
When you create a composite foreign key, make sure the entire table the foreign key is being placed on is loaded into tempdb. An error 1105 will occur if tempdb is:
To work around this problem, you can either:
ALTER DATABASE tempdb
MODIFY FILE
(NAME='TEMPDEV',
FILENAME='<new drive letter and path>\tempdb.mdf')
go
ALTER DATABASE TEMPDB
MODIFY FILE
(NAME='TEMPLOG',
FILENAME='<new drive letter and path>\templog.ldf')
go
Microsoft has confirmed this to be a problem in SQL Server version 7.0.
SQL Server 6.5 checks a portion of data at a time. It frees tempdb space between each check. Therefore, tempdb never approaches the size of the foreign key table.
Additional query words:
Keywords : kbbug7.00 kbSQLServ700bug
Version : winnt:7.0
Platform : winnt
Issue type : kbbug
Last Reviewed: May 27, 1999