Save byte array in sql server

前端 未结 3 2036
滥情空心
滥情空心 2020-12-11 00:34

Am looking to use an approach in saving passwords that requires using byte array as in this post

So which data type should i use in sql server to save byte array? an

3条回答
  •  心在旅途
    2020-12-11 01:32

    If it's always going to be the same length, then binary(length) would be suitable. If it's going to vary in length, use varbinary(maxlength).

    binary and varbinary.

    And, as @p.s.w.g says, you pass it from code by placing it into a suitable parameter.

提交回复
热议问题