有人会帮助我如何在.net中使用varchar(max)设置参数 提前谢谢
有我的代码:
Dim param As SqlParameter = Nothing
Select Case strParameter
Case "@item"
param = New SqlParameter(strParameter, SqlDbType.VarChar, 50)
Case "@value"
param = New SqlParameter(strParameter, SqlDbType.VarChar, max)
End Select
param.Value = objDBHandlers.getValue(objValue)