2015-03-02 52 views
1
`parameter = command.CreateParameter ("Num",DB.adSmallInt, DB.adParamInput,2, anyValue)` 

我想在类型是什么是'Size'参数大小单位,在Set参数Method?

DB.adSmallInt

大小= 2

将大小的情况就知道是 2字节? 或 2位? 在哪个单元中它将被配置?

+0

由于adSmallInt *的大小为两个字节,因此'size'参数将被忽略。 – 2015-03-02 14:18:16

+0

http://www.w3schools.com/asp/met_comm_createparameter.asp – 2015-03-02 17:08:45

回答

0

由于adSmallInt的大小为两个字节,所以size参数将被忽略, 并且正在SQL Server端转换为smallint。