all groups > sql server (alternate) > november 2005 >
You're in the

sql server (alternate)

group:

regarding BLOB


Re: regarding BLOB Trevor Best
11/11/2005 12:00:00 AM
sql server (alternate):
[quoted text, click to view]

regarding BLOB causacn NO[at]SPAM gmail.com
11/11/2005 6:22:08 AM
Does sql server has the data type similar to BLOB (Binary larger
object)which is available to DB2. BLOB in DB2 can support up to 2 G
(variable-length data )

if it does have, which one offers better functionalities

any advice will be greatly appreciated!
Re: regarding BLOB ZeldorBlat
11/11/2005 11:08:59 AM
Binary and varbinary are "fixed length" in the same sense as char and
varchar. If you want to store a large amount of binary data, you
probably want the "image" type.
Re: regarding BLOB causacn NO[at]SPAM gmail.com
11/11/2005 11:36:22 AM
i just checked the sql server docs.
it seems image type is DB2 blobs equivalent
Re: regarding BLOB Erland Sommarskog
11/11/2005 11:08:11 PM
(causacn@gmail.com) writes:
[quoted text, click to view]

The "classic" answer in this regard is the image data type, with its
cousins text and ntext for character data.

But in the new version of SQL Server, SQL 2005, just recently released,
there is a new data type: varbinary(MAX) as well as varchar(MAX) and
nvarchar(MAX). If you are on SQL 2005, you should use the MAX data types,
as they are lot easier to deal with than image/text/ntext.


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

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
AddThis Social Bookmark Button