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
Showing posts with label word. Show all posts
Showing posts with label word. Show all posts
Monday, March 26, 2012
Wednesday, February 15, 2012
Execution Plan
I saw the word ORDERED FORWARD In Execution Plan. What it means?.
Regards
It means that SQL Server uses an index to find the rows, and dictates that the engine need to follow
the index in order and not use the IAM page or similar to get to the rows. You can see an ORDERED
FORWARD, for instance when an index is used to handle an ORDER BY in a query, so that SQL Server
doesn't have to do a later SORT operation.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Praveen" <apveen@.gmail.com> wrote in message
news:1144242688.534865.95810@.u72g2000cwu.googlegro ups.com...
>I saw the word ORDERED FORWARD In Execution Plan. What it means?.
> Regards
>
Regards
It means that SQL Server uses an index to find the rows, and dictates that the engine need to follow
the index in order and not use the IAM page or similar to get to the rows. You can see an ORDERED
FORWARD, for instance when an index is used to handle an ORDER BY in a query, so that SQL Server
doesn't have to do a later SORT operation.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Praveen" <apveen@.gmail.com> wrote in message
news:1144242688.534865.95810@.u72g2000cwu.googlegro ups.com...
>I saw the word ORDERED FORWARD In Execution Plan. What it means?.
> Regards
>
Execution Plan
I saw the word ORDERED FORWARD In Execution Plan. What it means?.
RegardsIt means that SQL Server uses an index to find the rows, and dictates that the engine need to follow
the index in order and not use the IAM page or similar to get to the rows. You can see an ORDERED
FORWARD, for instance when an index is used to handle an ORDER BY in a query, so that SQL Server
doesn't have to do a later SORT operation.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Praveen" <apveen@.gmail.com> wrote in message
news:1144242688.534865.95810@.u72g2000cwu.googlegroups.com...
>I saw the word ORDERED FORWARD In Execution Plan. What it means?.
> Regards
>
RegardsIt means that SQL Server uses an index to find the rows, and dictates that the engine need to follow
the index in order and not use the IAM page or similar to get to the rows. You can see an ORDERED
FORWARD, for instance when an index is used to handle an ORDER BY in a query, so that SQL Server
doesn't have to do a later SORT operation.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Praveen" <apveen@.gmail.com> wrote in message
news:1144242688.534865.95810@.u72g2000cwu.googlegroups.com...
>I saw the word ORDERED FORWARD In Execution Plan. What it means?.
> Regards
>
Execution Plan
I saw the word ORDERED FORWARD In Execution Plan. What it means?.
RegardsIt means that SQL Server uses an index to find the rows, and dictates that t
he engine need to follow
the index in order and not use the IAM page or similar to get to the rows. Y
ou can see an ORDERED
FORWARD, for instance when an index is used to handle an ORDER BY in a query
, so that SQL Server
doesn't have to do a later SORT operation.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Praveen" <apveen@.gmail.com> wrote in message
news:1144242688.534865.95810@.u72g2000cwu.googlegroups.com...
>I saw the word ORDERED FORWARD In Execution Plan. What it means?.
> Regards
>
RegardsIt means that SQL Server uses an index to find the rows, and dictates that t
he engine need to follow
the index in order and not use the IAM page or similar to get to the rows. Y
ou can see an ORDERED
FORWARD, for instance when an index is used to handle an ORDER BY in a query
, so that SQL Server
doesn't have to do a later SORT operation.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Praveen" <apveen@.gmail.com> wrote in message
news:1144242688.534865.95810@.u72g2000cwu.googlegroups.com...
>I saw the word ORDERED FORWARD In Execution Plan. What it means?.
> Regards
>
Subscribe to:
Posts (Atom)