![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I'm hoping someone here can shed some light on this situation that has me a little bewildered. My company has inherited a SQL 2000 server with a number of databases on it. The drive these databases are on is slowly running out of space so I decided to inspect the drive a little more closely to see if there was any space that could be freed. What I have discovered has me a little confused. See, the SQL server has been installed on the D:\ with all the databases pointing to "D:\Databases". However, there also seems to be a copy of the database file in "D:\Program Files\Microsoft SQL Server\MSSQL\Data". I figured that perhaps the old DBA had just copied the "D:\Databases" from "D:\Program Files\Microsoft SQL Server\MSSQL\Data" in a schema change or something but when I tried to delete one of the files I found that both sets of files in both directories were in use. Can someone explain how this is possible and perhaps the reasoning behind it. It seems like a waste of space to me. Thanks, Scott |
#3
| |||
| |||
|
|
You should see which files are in use by using SELECT * FROM master.dbo.sysaltfiles; You should also check to see if you have more than one instance of SQL Server running. Just blindly clicking on a file and deleting it may not be the smartest thing to do, whether it is currently in use or not. On 8/11/09 1:09 PM, in article gBhgm.130268$qx1.24625 (AT) newsfe04 (DOT) iad, "Scott" Scott (AT) Verifpoint (DOT) com> wrote: Hello, I'm hoping someone here can shed some light on this situation that has me a little bewildered. My company has inherited a SQL 2000 server with a number of databases on it. The drive these databases are on is slowly running out of space so I decided to inspect the drive a little more closely to see if there was any space that could be freed. What I have discovered has me a little confused. See, the SQL server has been installed on the D:\ with all the databases pointing to "D:\Databases". However, there also seems to be a copy of the database file in "D:\Program Files\Microsoft SQL Server\MSSQL\Data". I figured that perhaps the old DBA had just copied the "D:\Databases" from "D:\Program Files\Microsoft SQL Server\MSSQL\Data" in a schema change or something but when I tried to delete one of the files I found that both sets of files in both directories were in use. Can someone explain how this is possible and perhaps the reasoning behind it. It seems like a waste of space to me. Thanks, Scott |
#4
| |||
| |||
|
|
Yes, I have looked at this to see which file is "in use". However, both sets of files seem to be current and in use despite what SQL says. It is almost as if the database files are being mirrored between the two directories. They match in every way...size, creation date, modifie date and even growth rate. Even if I create a new database and specifiy the file to go in "D:\Databases" it ends up in both. I'm confused about how this even got set up this way and if there was a special thought behind it. -Scott "Aaron Bertrand [SQL Server MVP]" <ten.xoc (AT) dnartreb (DOT) noraa> wrote in message news:C6A721C3.2209B%ten.xoc (AT) dnartreb (DOT) noraa... You should see which files are in use by using SELECT * FROM master.dbo.sysaltfiles; You should also check to see if you have more than one instance of SQL Server running. Just blindly clicking on a file and deleting it may not be the smartest thing to do, whether it is currently in use or not. On 8/11/09 1:09 PM, in article gBhgm.130268$qx1.24625 (AT) newsfe04 (DOT) iad, "Scott" Scott (AT) Verifpoint (DOT) com> wrote: Hello, I'm hoping someone here can shed some light on this situation that has me a little bewildered. My company has inherited a SQL 2000 server with a number of databases on it. The drive these databases are on is slowly running out of space so I decided to inspect the drive a little more closely to see if there was any space that could be freed. What I have discovered has me a little confused. See, the SQL server has been installed on the D:\ with all the databases pointing to "D:\Databases". However, there also seems to be a copy of the database file in "D:\Program Files\Microsoft SQL Server\MSSQL\Data". I figured that perhaps the old DBA had just copied the "D:\Databases" from "D:\Program Files\Microsoft SQL Server\MSSQL\Data" in a schema change or something but when I tried to delete one of the files I found that both sets of files in both directories were in use. Can someone explain how this is possible and perhaps the reasoning behind it. It seems like a waste of space to me. Thanks, Scott |
#5
| |||
| |||
|
|
It sounds like someone created a mount point that points to the original location. If that is the case it is not duplicate data or using extra space. -- Andrew J. Kelly SQL MVP Solid Quality Mentors "Scott" <Scott (AT) Verifpoint (DOT) com> wrote in message news:fjigm.111398$9P.16044 (AT) newsfe08 (DOT) iad... Yes, I have looked at this to see which file is "in use". However, both sets of files seem to be current and in use despite what SQL says. It is almost as if the database files are being mirrored between the two directories. They match in every way...size, creation date, modifie date and even growth rate. Even if I create a new database and specifiy the file to go in "D:\Databases" it ends up in both. I'm confused about how this even got set up this way and if there was a special thought behind it. -Scott "Aaron Bertrand [SQL Server MVP]" <ten.xoc (AT) dnartreb (DOT) noraa> wrote in message news:C6A721C3.2209B%ten.xoc (AT) dnartreb (DOT) noraa... You should see which files are in use by using SELECT * FROM master.dbo.sysaltfiles; You should also check to see if you have more than one instance of SQL Server running. Just blindly clicking on a file and deleting it may not be the smartest thing to do, whether it is currently in use or not. On 8/11/09 1:09 PM, in article gBhgm.130268$qx1.24625 (AT) newsfe04 (DOT) iad, "Scott" Scott (AT) Verifpoint (DOT) com> wrote: Hello, I'm hoping someone here can shed some light on this situation that has me a little bewildered. My company has inherited a SQL 2000 server with a number of databases on it. The drive these databases are on is slowly running out of space so I decided to inspect the drive a little more closely to see if there was any space that could be freed. What I have discovered has me a little confused. See, the SQL server has been installed on the D:\ with all the databases pointing to "D:\Databases". However, there also seems to be a copy of the database file in "D:\Program Files\Microsoft SQL Server\MSSQL\Data". I figured that perhaps the old DBA had just copied the "D:\Databases" from "D:\Program Files\Microsoft SQL Server\MSSQL\Data" in a schema change or something but when I tried to delete one of the files I found that both sets of files in both directories were in use. Can someone explain how this is possible and perhaps the reasoning behind it. It seems like a waste of space to me. Thanks, Scott |
#6
| |||
| |||
|
|
I thought that might be the case aswell but I do not see any mountpoints in the system. There is just one hard disk with two partitions, C and D. |
#7
| |||
| |||
|
|
Scott (Scott (AT) Verifpoint (DOT) com) writes: I thought that might be the case aswell but I do not see any mountpoints in the system. There is just one hard disk with two partitions, C and D. I think Andy used the incorrect teminology. They are not mountpoints, they are just muliple links to the same directory. And as Andy says, save the extra node for the link, there is no duplicate space wasted. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#8
| |||
| |||
|
|
How can I check for these? I do not think this is the case because the amount of space used on the drive doesn't add up if it were but I'd like to check just to make sure. "Erland Sommarskog" <esquel (AT) sommarskog (DOT) se> wrote in message news:Xns9C651320BB39Yazorman (AT) 127 (DOT) 0.0.1... Scott (Scott (AT) Verifpoint (DOT) com) writes: I thought that might be the case aswell but I do not see any mountpoints in the system. There is just one hard disk with two partitions, C and D. I think Andy used the incorrect teminology. They are not mountpoints, they are just muliple links to the same directory. And as Andy says, save the extra node for the link, there is no duplicate space wasted. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#9
| |||
| |||
|
|
What happens if you create a text file in that location using Notepad. Does it show up in both places? -- Rick Byham, MSFT (Implies no warranty or rights) "Scott" <Scott (AT) Verifpoint (DOT) com> wrote in message news:uqmgm.53982$sC1.18217 (AT) newsfe17 (DOT) iad... How can I check for these? I do not think this is the case because the amount of space used on the drive doesn't add up if it were but I'd like to check just to make sure. "Erland Sommarskog" <esquel (AT) sommarskog (DOT) se> wrote in message news:Xns9C651320BB39Yazorman (AT) 127 (DOT) 0.0.1... Scott (Scott (AT) Verifpoint (DOT) com) writes: I thought that might be the case aswell but I do not see any mountpoints in the system. There is just one hard disk with two partitions, C and D. I think Andy used the incorrect teminology. They are not mountpoints, they are just muliple links to the same directory. And as Andy says, save the extra node for the link, there is no duplicate space wasted. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#10
| |||
| |||
|
|
What happens if you create a text file in that location using Notepad. Does it show up in both places? -- Rick Byham, MSFT (Implies no warranty or rights) "Scott" <Scott (AT) Verifpoint (DOT) com> wrote in message news:uqmgm.53982$sC1.18217 (AT) newsfe17 (DOT) iad... How can I check for these? I do not think this is the case because the amount of space used on the drive doesn't add up if it were but I'd like to check just to make sure. "Erland Sommarskog" <esquel (AT) sommarskog (DOT) se> wrote in message news:Xns9C651320BB39Yazorman (AT) 127 (DOT) 0.0.1... Scott (Scott (AT) Verifpoint (DOT) com) writes: I thought that might be the case aswell but I do not see any mountpoints in the system. There is just one hard disk with two partitions, C and D. I think Andy used the incorrect teminology. They are not mountpoints, they are just muliple links to the same directory. And as Andy says, save the extra node for the link, there is no duplicate space wasted. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
![]() |
| Thread Tools | |
| Display Modes | |
| |