Unix Technical Forum

SQL Server 2000 running out of space.

This is a discussion on SQL Server 2000 running out of space. within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi, we have a SqlServer instance in production containing around 10 databases. It has just been realised that all ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 08:25 PM
jimfkennedy@gmail.com
 
Posts: n/a
Default SQL Server 2000 running out of space.

Hi, we have a SqlServer instance in production containing around 10
databases.

It has just been realised that all the db's are held on the small c:
partition with only a gig or so of space left.

On the server there is another partition and another hard disk both
will ample space (few hundred gigs).

What would be the best way of getting the data onto the other
partitions with minimal impact on the applications. Can we move the
primary data files for each db? Should we just create secondary data
files on the big partitions for all the db's? Is there a method of
moving all the data at once?

Any ideas on how we should approach this?

(ps we dont have control of the sqlserver its outsourced, so simpler
the better).

Thanks,

Jim

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 08:25 PM
rcamarda
 
Posts: n/a
Default Re: SQL Server 2000 running out of space.

IMO the quickest and easist way is to detach the database, move the
data via windows, and attach the database again.
This can be done via enterprise manager (in SQL Server 2000) or via QA.
See sp_detach_db command.
If you have a maintenace window where you can shutdown the application
(necessary since the database will be unavailable while detached) this
is the quickest and simplest. Once the database is attached, the
application wont know nor care that it was on the C: drive and now
somewhere else
HTH
Rob

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 08:25 PM
Erland Sommarskog
 
Posts: n/a
Default Re: SQL Server 2000 running out of space.

(jimfkennedy@gmail.com) writes:
> Hi, we have a SqlServer instance in production containing around 10
> databases.
>
> It has just been realised that all the db's are held on the small c:
> partition with only a gig or so of space left.
>
> On the server there is another partition and another hard disk both
> will ample space (few hundred gigs).
>
> What would be the best way of getting the data onto the other
> partitions with minimal impact on the applications. Can we move the
> primary data files for each db? Should we just create secondary data
> files on the big partitions for all the db's? Is there a method of
> moving all the data at once?


It appears that your databases are small in size. That talks against
creating a secondary datafile.

I would suggest that you use either detach/attach or backup/restore the
move the database. My own preference is for the latter.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:17 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com