Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 SQL Server 6.5 \ SQL Server 7.0
 SQL Server 6.5

Author  Topic 

jquail1973
Starting Member

2 Posts

Posted - 2007-08-06 : 07:16:23
I recently increased the database and transaction log file size of one of our databases in enterprise manager.

Although it showed the increase in "manage database devices" and the database and log files. It now seems to have reverted back to it's original setting. Can this happen? How can I resovle this problem?

Jason

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-08-06 : 12:48:19
Did you expand db and log after expanding devices?
Go to Top of Page

jquail1973
Starting Member

2 Posts

Posted - 2007-08-07 : 10:41:18
quote:
Originally posted by rmiao

Did you expand db and log after expanding devices?



No I did not expand the device first. I am from a sql server 2000 + back ground I was not aware that this had to be done also.

Thanks for you help

Jason
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2007-08-07 : 11:00:38
You couldn't have expanded the databases without having free space in a device first.

Run this code in a query window and post the ouptut so that we can see what you have.

use master

go
set nocount on
declare @mess varchar(200)
select @mess = 'Server ' + @@SERVERNAME + ' at ' +
convert(varchar(50), getdate(),111) +' ' +convert(varchar(50), getdate(),114)
print ' '
print @mess
print ' '
print 'Display Database Segment Sizes'
print ' '
go
set nocount off
go

select
--a.dbid,
DB_Name = a.name,
--b.segmap,
Segment_Type =
convert(varchar(15),
case b.segmap
when 3 then 'Data'
when 4 then 'Log'
when 7 then 'Data and Log'
else 'Unknown'
end),
--Segment_Size = b.size,
Seg_Megabytes = (b.size * 2) / (1024) ,
--b.Lstart ,
--DB_Creation_Date = a.crdate,
--Current_Date_Time = getdate(),
Device_Name = c.Name,
Device_Path = c.phyname
--,b.Vstart,
--c.Low,
--c.High
from
master.dbo.sysdatabases a,
master.dbo.sysusages b,
master.dbo.sysdevices c
where
a.dbid = b.dbid and
b.vstart >= c.low and
b.vstart <= c.High and
c.high > 19 and
c.phyname <> 'nul'
order by
a.dbid, b.lstart


go
print ' '
print 'Display Database Devices'
print ' '
go
set nocount on
go

select
DeviceNumber =
case
when name = 'master'
then 0
when convert(int,convert(binary(1), (low / 0x01000000))) = 0
then convert(smallint,null)
else convert(smallint,convert(int,convert(binary(1), (low / 0x01000000))))
end,
*
into
#t1
from
master..sysdevices

go
set nocount off
go

select
DeviceNumber ,
low ,
high ,
name ,
phyname
--*
--status ,
--cntrltype ,
--mirrorname ,
--stripeset
from
#t1
where
DeviceNumber is not null
order by
DeviceNumber,
Name


go
drop table #t1
go
print ' '
print 'End'
print ' '


CODO ERGO SUM
Go to Top of Page
   

- Advertisement -