Results 1 to 4 of 4
Thread: Getting size of blob in MSSQL
Feb 2, 2005, 15:15 #1
Getting size of blob in MSSQL
Many thank you's in advance.Cheers,
Feb 3, 2005, 05:43 #2
To find the length of a field
select Len(field) from table
the 4 MB limit is more likely coming from ADO than from mssql, qhich can store up to 2 GB in one of these fields
Feb 3, 2005, 05:45 #3
Oh, I see, you want to know the length of the data, not the field size...
select datalength(field) from table
where PK = Expression
Feb 3, 2005, 09:54 #4
Fan(blooming)tastic! I could not find that datalength documented anywhere. Now I know the name of the function I can read up on it in SQL Server Books Online.
Thank you very very very very very very very much. This is going to save me a lot of headache in dealing with our SQL CDBA's.Cheers,