Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CHECKSUM column: Byte Length? 2

Status
Not open for further replies.

LFCfan

Programmer
Nov 29, 2002
3,015
GB
Does anyone know how to calculate the byte length/storage space of a field which is a checksum of another field? I need to calculate the maximum row length of various tables and I can't find anything in BOL about checksum column lengths

Just in case this is needed, the relevant part of the table definition is

CREATE TABLE MyTable(
...
[AccNumber] [varchar] (20) COLLATE Latin1_General_BIN NOT NULL ,
[csAccNumber] AS (checksum([AccNumber])) ,
...
)


Thanks
Maria
 
Thanks loads Terry,

I didn't know about the datalength function and it's going to be very useful to me for the task I've been set!

Maria
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top