Showing posts with label disk. Show all posts
Showing posts with label disk. Show all posts

Monday, March 26, 2012

Export data onto Hard Disk

Hello People,

I have began to store binary data in my database, for example word documents, PDF's...etc.

But now my database file is growing beyond what I want, and I need to move all of the files out of the DB onto normal hard disk space.

Is there anyway, say by using a bulk copy command, that I can write all the contents of the table into a folder on my hard disk...?

My database table consists of ID(int), Filename(varchar), Filetype(varchar), Filesize(varchar), Filebody(image)

Any help would be extremely appreciated....

Many Thanks,

Alan...bcp, DTS?|||You can BCP (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/coprompt/cp_bcp_61et.asp) the entire contents of a table into a single file on your hard disk. You could write a DTS (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dtssql/dts_tools_des_4fg2.asp) package that took every row from your table, and wrote the contents of the filebody column into a file named by the filename column.

-PatP

Sunday, February 26, 2012

Expand disk for cluster

Good morning all...

We currently have a active/passive 2K cluster -- 100GB partition for data and another 100GB for backups. We just acquired another mass amount of databases from another division that we need to get online and running very soon, however we can't have a extensive outage of our cluster. PROBLEM: we need to expand the LUN on our SAN by another 150GB to accomodate for the new databases on the data partition, along with adding another 75GB on our backup partition.

Has anyone run into this situation where they are expanding their SAN to accomodate for growth? What did you do to minimize the downtime? Is it even possible? Or do I have to break the cluster, add the disk, rebuild the cluster and restore? GEESH, I hope not.

Thanks in advance!Refer to this link (http://www.sql-server-performance.com/clustering_intro2.asp) for more information.