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
 General SQL Server Forums
 New to SQL Server Programming
 the BLOB datatype

Author  Topic 

Helloise Smit
Starting Member

22 Posts

Posted - 2008-08-25 : 09:50:35
what datatype in sql would represent a BLOB and also a double precision?

thank you
helloise

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-25 : 09:52:13
BLOB datatypes are varchar(max),nvarchar(max) and varbinary(max)
double precision is real or float
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-08-25 : 09:52:44
What did Books Online tell you when you read it?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-08-25 : 09:55:06
neither.
blob is varbinary(max) or image if you're using sql server 2000.
double precision is float.

EDIT:



_______________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.0 out!
Go to Top of Page

Helloise Smit
Starting Member

22 Posts

Posted - 2008-08-25 : 10:02:51
thank you....
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-08-25 : 10:03:33
[code]declare @v float(25)
set @v = cast(getdate() as float(25))
select @v

declare @b varbinary(200)
set @b = cast(@v as varbinary(200))
select dbo.fnBinaryFloat2Float(@b)[/code]


E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -