星期三, 9月 30, 2009

Pass NULL as a Parameter Value to SQLParameter

The following c# code sample shows how to pass Null as a parameter value.
SqlParameter ParamValue= new SqlParameter("@Address", SqlDbType.NVarChar, 20);
ParamValue.Value = DBNull.Value;
Reference:Pass NULL as a Parameter Value to SQLParameter

沒有留言:

張貼留言

留個話吧:)

其他你感興趣的文章

Related Posts with Thumbnails