data type for 32-bit

I am going to generate 32-bit encryption key with combination of any
number of characters. what data type and its size should I use for
that on MS SQL 2005? will it be nvarchar(max) or nvarchar(4000)
appropriate to use? thanks!
TJM [ Mi, 21 November 2007 17:25 ] [ ID #1875807 ]

Re: data type for 32-bit

You can use BINARY(4) if the key is always 32-bit. If it will vary then
maybe VARBINARY(4) will be better.

HTH,

Plamen Ratchev
http://www.SQLStudio.com
Plamen Ratchev [ Mi, 21 November 2007 19:26 ] [ ID #1875808 ]
Datenbanken » comp.databases.ms-sqlserver » data type for 32-bit

Vorheriges Thema: how to copy files using xp_cmdshell
Nächstes Thema: databanks as test-examples