dbTalk Databases Forums  

data type for 32-bit

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss data type for 32-bit in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
TGEAR
 
Posts: n/a

Default data type for 32-bit - 11-21-2007 , 10:25 AM






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!

Reply With Quote
  #2  
Old   
Plamen Ratchev
 
Posts: n/a

Default Re: data type for 32-bit - 11-21-2007 , 12:26 PM






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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.