Try this
Method1:
SqlCommand command = new SqlCommand("insert into TableName values
(@Col1,@Col2)",connection);
command.Parameters.AddWithValue("@Col2",DBNull.Value);
Method2:
SqlCommand command = new SqlCommand("insert into TableName values
(@Col1,@Col2)",connection);
command.Parameters.Add("@Col2",System.Data.SqlDbType.Int).Value=DBNull.Value;